Skip to content

Commit 83c1ff1

Browse files
committed
Remove unsafe
1 parent e24221b commit 83c1ff1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/codegen/src/compile.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,7 @@ impl Compiler {
625625

626626
// Push the next table onto the stack
627627
self.symbol_table_stack.push(table);
628-
// SAFETY: We just pushed, so it can't be empty
629-
unsafe { self.symbol_table_stack.last().unwrap_unchecked() }
628+
self.current_symbol_table()
630629
}
631630

632631
/// Pop the current symbol table off the stack

0 commit comments

Comments
 (0)