Skip to content

Commit a60b2da

Browse files
committed
fix doc links
1 parent 82a99fe commit a60b2da

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

crates/wasmi/src/engine/translator/translator2/stack/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ use crate::{
3939
use alloc::vec::Vec;
4040
use core::{array, mem, num::NonZero};
4141

42+
#[cfg(doc)]
43+
use crate::ir::Instruction;
44+
4245
/// The Wasm value stack during translation from Wasm to Wasmi bytecode.
4346
#[derive(Debug, Default)]
4447
pub struct Stack {

crates/wasmi/src/engine/translator/translator2/stack/operands.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::{
77
use alloc::vec::Vec;
88
use core::{array, mem, num::NonZero, slice};
99

10-
/// A [`StackOperand`] or [`Operand`] index on the [`Stack`].
10+
/// A [`StackOperand`] or [`Operand`] index on the [`OperandStack`].
1111
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
1212
pub struct OperandIdx(NonZero<usize>);
1313

@@ -26,7 +26,7 @@ impl From<usize> for OperandIdx {
2626
}
2727
}
2828

29-
/// An [`Operand`] on the [`Stack`].
29+
/// An [`Operand`] on the [`OperandStack`].
3030
///
3131
/// This is the internal version of [`Operand`] with information that shall remain
3232
/// hidden to the outside.
@@ -36,19 +36,19 @@ pub enum StackOperand {
3636
Local {
3737
/// The index of the local variable.
3838
local_index: LocalIdx,
39-
/// The previous [`StackOperand::Local`] on the [`Stack`].
39+
/// The previous [`StackOperand::Local`] on the [`OperandStack`].
4040
prev_local: Option<OperandIdx>,
41-
/// The next [`StackOperand::Local`] on the [`Stack`].
41+
/// The next [`StackOperand::Local`] on the [`OperandStack`].
4242
next_local: Option<OperandIdx>,
4343
},
44-
/// A temporary value on the [`Stack`].
44+
/// A temporary value on the [`OperandStack`].
4545
Temp {
4646
/// The type of the temporary value.
4747
ty: ValType,
4848
/// The instruction which has this [`StackOperand`] as result if any.
4949
instr: Option<Instr>,
5050
},
51-
/// An immediate value on the [`Stack`].
51+
/// An immediate value on the [`OperandStack`].
5252
Immediate {
5353
/// The value (and type) of the immediate value.
5454
val: TypedVal,

0 commit comments

Comments
 (0)