Skip to content

Commit 38de746

Browse files
committed
Fix Constants newtype usage in init_cleanup_code
1 parent cb2db07 commit 38de746

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.cspell.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"dedents",
6262
"deduped",
6363
"deoptimize",
64-
"descrs",
6564
"downcastable",
6665
"downcasted",
6766
"dumpable",

crates/vm/src/frame.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ long_float_action!(compactlong_float_subtract, -);
11761176
long_float_action!(compactlong_float_multiply, *);
11771177
long_float_action!(compactlong_float_true_div, /);
11781178

1179-
static BINARY_OP_EXTEND_DESCRS: &[BinaryOpExtendSpecializationDescr] = &[
1179+
static BINARY_OP_EXTEND_DESCRIPTORS: &[BinaryOpExtendSpecializationDescr] = &[
11801180
// long-long arithmetic
11811181
BinaryOpExtendSpecializationDescr {
11821182
oparg: bytecode::BinaryOperator::Or,
@@ -7264,7 +7264,7 @@ impl ExecutingFrame<'_> {
72647264
if ptr == 0 {
72657265
return None;
72667266
}
7267-
// SAFETY: We only store pointers to entries in `BINARY_OP_EXTEND_DESCRS`.
7267+
// SAFETY: We only store pointers to entries in `BINARY_OP_EXTEND_DESCRIPTORS`.
72687268
Some(unsafe { &*(ptr as *const BinaryOpExtendSpecializationDescr) })
72697269
}
72707270

@@ -7276,7 +7276,7 @@ impl ExecutingFrame<'_> {
72767276
rhs: &PyObject,
72777277
vm: &VirtualMachine,
72787278
) -> Option<&'static BinaryOpExtendSpecializationDescr> {
7279-
BINARY_OP_EXTEND_DESCRS
7279+
BINARY_OP_EXTEND_DESCRIPTORS
72807280
.iter()
72817281
.find(|d| d.oparg == op && (d.guard)(lhs, rhs, vm))
72827282
}

0 commit comments

Comments
 (0)