From a97e82c6e2f968b6afc5121d791bcc4a0f689eee Mon Sep 17 00:00:00 2001 From: Chris Dickinson Date: Sun, 9 Apr 2023 14:14:19 -0700 Subject: [PATCH] doc: fix StackSlot reference to FunctionBuilder (#6182) `FunctionBuilder::create_stackslot` was split into `create_sized_stack_slot` and `create_dynamic_stack_slot`. This updates the doc in the `StackBuilder` docstring to refer to the new methods. Fixes #5838. --- cranelift/codegen/src/ir/entities.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cranelift/codegen/src/ir/entities.rs b/cranelift/codegen/src/ir/entities.rs index 51c7633207..576268be1e 100644 --- a/cranelift/codegen/src/ir/entities.rs +++ b/cranelift/codegen/src/ir/entities.rs @@ -106,7 +106,9 @@ entity_impl!(Inst, "inst"); /// [call stack](https://en.wikipedia.org/wiki/Call_stack). /// /// `StackSlot`s can be created with -/// [`FunctionBuilder::create_stackslot`](https://docs.rs/cranelift-frontend/*/cranelift_frontend/struct.FunctionBuilder.html#method.create_stack_slot). +/// [`FunctionBuilder::create_sized_stack_slot`](https://docs.rs/cranelift-frontend/*/cranelift_frontend/struct.FunctionBuilder.html#method.create_sized_stack_slot) +/// or +/// [`FunctionBuilder::create_dynamic_stack_slot`](https://docs.rs/cranelift-frontend/*/cranelift_frontend/struct.FunctionBuilder.html#method.create_dynamic_stack_slot). /// /// `StackSlot`s are most often used with /// [`stack_addr`](super::InstBuilder::stack_addr),