We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c84a1fb commit 87ce041Copy full SHA for 87ce041
crates/wasmi/src/engine/translator/func/encoder.rs
@@ -233,14 +233,9 @@ impl OpEncoder {
233
}
234
235
236
- /// Returns the next allocated [`Pos<Op>`].
237
- ///
238
- /// # Panics (Debug)
239
240
- /// If there is a staged [`Op`].
+ /// Returns the [`Pos<Op>`] of the currently staged or next encoded item.
241
pub fn next_pos(&self) -> Pos<Op> {
242
// TODO: we should probably remove this API again from `OpEncoder`
243
- debug_assert!(self.staged.is_none());
244
Pos::from(self.ops.next_pos())
245
246
0 commit comments