Skip to content

Commit 2efc75e

Browse files
committed
fix intra doc links
1 parent ef4ab43 commit 2efc75e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

crates/wasmi/src/engine/code_map.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ use core::{
2828
use spin::Mutex;
2929
use wasmparser::{FuncToValidate, ValidatorResources, WasmFeatures};
3030

31+
#[cfg(doc)]
32+
use crate::ir::Op;
33+
3134
/// A reference to a compiled function stored in the [`CodeMap`] of an [`Engine`](crate::Engine).
3235
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
3336
pub struct EngineFunc(u32);

crates/wasmi/src/engine/executor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl<'engine> EngineExecutor<'engine> {
364364
execute_instrs(store.prune(), self.stack, self.code_map)
365365
}
366366

367-
/// Convenience forwarder to [`dispatch_host_func`].
367+
/// Convenience forwarder to dispatch host functions.
368368
#[inline(always)]
369369
fn dispatch_host_func<T>(
370370
&mut self,

crates/wasmi/src/engine/translator/func/labels.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl LabelRegistry {
192192
}
193193
}
194194

195-
/// Returns an iterator over pairs of user [`OpPos`] and their [`BranchOffset`].
195+
/// Returns an iterator over pairs of user [`Pos<Op>`] and their [`BranchOffset`].
196196
///
197197
/// # Panics
198198
///
@@ -207,11 +207,8 @@ impl LabelRegistry {
207207

208208
/// Iterator over resolved label users.
209209
///
210-
/// Iterates over pairs of user [`OpPos`] and its respective [`BranchOffset`]
211-
/// which allows the [`InstructionsBuilder`] to properly update the branching
212-
/// offsets.
213-
///
214-
/// [`InstructionsBuilder`]: [`super::InstructionsBuilder`]
210+
/// Iterates over [`ResolvedLabelUser`]s which allows to properly
211+
/// update the branching offsets.
215212
#[derive(Debug)]
216213
pub struct ResolvedUserIter<'a> {
217214
users: SliceIter<'a, LabelUser>,

crates/wasmi/src/engine/translator/func/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ impl FuncTranslator {
694694
!can_avoid_copies
695695
}
696696

697-
/// Pins the `label` to the next [`OpPos`].
697+
/// Pins the `label` to the next [`Pos<Op>`].
698698
fn pin_label(&mut self, label: LabelRef) {
699699
self.instrs.pin_label(label);
700700
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl Stack {
169169
///
170170
/// # Note
171171
///
172-
/// This inherits the `consume_fuel` [`OpPos`] from the parent [`ControlFrame`].
172+
/// This inherits the `consume_fuel` [`Pos<BlockFuel>`] from the parent [`ControlFrame`].
173173
///
174174
/// # Errors
175175
///

0 commit comments

Comments
 (0)