Skip to content

Commit 87ce041

Browse files
committed
change OpEncoder::next_pos docs and semantics
1 parent c84a1fb commit 87ce041

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,9 @@ impl OpEncoder {
233233
}
234234
}
235235

236-
/// Returns the next allocated [`Pos<Op>`].
237-
///
238-
/// # Panics (Debug)
239-
///
240-
/// If there is a staged [`Op`].
236+
/// Returns the [`Pos<Op>`] of the currently staged or next encoded item.
241237
pub fn next_pos(&self) -> Pos<Op> {
242238
// TODO: we should probably remove this API again from `OpEncoder`
243-
debug_assert!(self.staged.is_none());
244239
Pos::from(self.ops.next_pos())
245240
}
246241

0 commit comments

Comments
 (0)