normalize use of backticks in compiler messages for librustc_allocator
https://github.com/rust-lang/rust/issues/60532
if self.found {
self.handler
- .span_err(item.span, "cannot define more than one #[global_allocator]");
+ .span_err(item.span, "cannot define more than one `#[global_allocator]`");
return smallvec![item];
}
self.found = true;
AllocatorTy::Unit => (self.cx.ty(self.span, TyKind::Tup(Vec::new())), expr),
AllocatorTy::Layout | AllocatorTy::Usize | AllocatorTy::Ptr => {
- panic!("can't convert AllocatorTy to an output")
+ panic!("can't convert `AllocatorTy` to an output")
}
}
}
static A: System = System;
#[global_allocator]
static B: System = System;
-//~^ ERROR: cannot define more than one #[global_allocator]
+//~^ ERROR: cannot define more than one `#[global_allocator]`
fn main() {}
-error: cannot define more than one #[global_allocator]
+error: cannot define more than one `#[global_allocator]`
--> $DIR/two-allocators.rs:6:1
|
LL | static B: System = System;