Visitar URL original
Split stack_effect into pushed & popped by ShaharNaveh · Pull Request #6893 · RustPython/RustPython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
ShaharNaveh committed Jan 30, 2026
commit bf92d5c9d6403f545f34bc501f31b46397f14e65
2 changes: 1 addition & 1 deletion crates/compiler-core/src/bytecode/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ impl StackEffect {

impl From<StackEffect> for i32 {
fn from(effect: StackEffect) -> Self {
// SAFTEY: Trust `num_pushed` & `num_popped` impls
// SAFETY: Trust `num_pushed` & `num_popped` impls
unsafe {
Self::try_from(effect.pushed()).unwrap_unchecked()
- Self::try_from(effect.popped()).unwrap_unchecked()
Expand Down
Loading