Skip to content

Commit 9d9aa8a

Browse files
committed
feat: try become keyword again
1 parent e6affb6 commit 9d9aa8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/vm/derive/src/tco.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ pub fn tco_impl(item: TokenStream) -> TokenStream {
6767
}
6868
let next_handler = next_handler.unwrap_unchecked();
6969

70-
// The `become` keyword has a bug that is not re-passing the `interpreter`, `exec_state` references properly. But llvm seems to almost always guarantee tail call elimination when the function signature is the same as the current function.
71-
next_handler(interpreter, exec_state)
70+
become next_handler(interpreter, exec_state)
7271
}
7372
};
7473

0 commit comments

Comments
 (0)