@@ -7,7 +7,7 @@ use crate::{
7
7
use alloc:: vec:: Vec ;
8
8
use core:: { array, mem, num:: NonZero , slice} ;
9
9
10
- /// A [`StackOperand`] or [`Operand`] index on the [`Stack `].
10
+ /// A [`StackOperand`] or [`Operand`] index on the [`OperandStack `].
11
11
#[ derive( Debug , Copy , Clone , PartialEq , Eq ) ]
12
12
pub struct OperandIdx ( NonZero < usize > ) ;
13
13
@@ -26,7 +26,7 @@ impl From<usize> for OperandIdx {
26
26
}
27
27
}
28
28
29
- /// An [`Operand`] on the [`Stack `].
29
+ /// An [`Operand`] on the [`OperandStack `].
30
30
///
31
31
/// This is the internal version of [`Operand`] with information that shall remain
32
32
/// hidden to the outside.
@@ -36,19 +36,19 @@ pub enum StackOperand {
36
36
Local {
37
37
/// The index of the local variable.
38
38
local_index : LocalIdx ,
39
- /// The previous [`StackOperand::Local`] on the [`Stack `].
39
+ /// The previous [`StackOperand::Local`] on the [`OperandStack `].
40
40
prev_local : Option < OperandIdx > ,
41
- /// The next [`StackOperand::Local`] on the [`Stack `].
41
+ /// The next [`StackOperand::Local`] on the [`OperandStack `].
42
42
next_local : Option < OperandIdx > ,
43
43
} ,
44
- /// A temporary value on the [`Stack `].
44
+ /// A temporary value on the [`OperandStack `].
45
45
Temp {
46
46
/// The type of the temporary value.
47
47
ty : ValType ,
48
48
/// The instruction which has this [`StackOperand`] as result if any.
49
49
instr : Option < Instr > ,
50
50
} ,
51
- /// An immediate value on the [`Stack `].
51
+ /// An immediate value on the [`OperandStack `].
52
52
Immediate {
53
53
/// The value (and type) of the immediate value.
54
54
val : TypedVal ,
0 commit comments