diff options
Diffstat (limited to 'yjit/src/backend')
-rw-r--r-- | yjit/src/backend/ir.rs | 6 | ||||
-rw-r--r-- | yjit/src/backend/tests.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs index 609ca8eaf4..dfdc1deb0d 100644 --- a/yjit/src/backend/ir.rs +++ b/yjit/src/backend/ir.rs @@ -912,7 +912,7 @@ impl Assembler /// Create a new label instance that we can jump to pub fn new_label(&mut self, name: &str) -> Target { - assert!(!name.contains(" "), "use underscores in label names, not spaces"); + assert!(!name.contains(' '), "use underscores in label names, not spaces"); let label_idx = self.label_names.len(); self.label_names.push(name.to_string()); @@ -1232,10 +1232,10 @@ impl AssemblerLookbackIterator { impl fmt::Debug for Assembler { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!(fmt, "Assembler\n")?; + writeln!(fmt, "Assembler")?; for (idx, insn) in self.insns.iter().enumerate() { - write!(fmt, " {idx:03} {insn:?}\n")?; + writeln!(fmt, " {idx:03} {insn:?}")?; } Ok(()) diff --git a/yjit/src/backend/tests.rs b/yjit/src/backend/tests.rs index 08e8849b4d..16f9375ba4 100644 --- a/yjit/src/backend/tests.rs +++ b/yjit/src/backend/tests.rs @@ -29,11 +29,11 @@ fn guard_object_is_heap( asm.comment("guard object is heap"); // Test that the object is not an immediate - asm.test(object_opnd.clone(), Opnd::UImm(RUBY_IMMEDIATE_MASK as u64)); + asm.test(object_opnd, Opnd::UImm(RUBY_IMMEDIATE_MASK as u64)); asm.jnz(Target::CodePtr(side_exit)); // Test that the object is not false or nil - asm.cmp(object_opnd.clone(), Opnd::UImm(Qnil.into())); + asm.cmp(object_opnd, Opnd::UImm(Qnil.into())); asm.jbe(Target::CodePtr(side_exit)); } |