normalize use of backticks in compiler messages for librustc_lint
This commit is contained in:
parent
1301422a6c
commit
0385d64d19
15 changed files with 65 additions and 65 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// run-rustfix
|
||||
|
||||
#[no_mangle] pub static RAH: usize = 5;
|
||||
//~^ ERROR const items should never be #[no_mangle]
|
||||
//~^ ERROR const items should never be `#[no_mangle]`
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// run-rustfix
|
||||
|
||||
#[no_mangle] pub const RAH: usize = 5;
|
||||
//~^ ERROR const items should never be #[no_mangle]
|
||||
//~^ ERROR const items should never be `#[no_mangle]`
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error: const items should never be #[no_mangle]
|
||||
error: const items should never be `#[no_mangle]`
|
||||
--> $DIR/issue-45562.rs:3:14
|
||||
|
|
||||
LL | #[no_mangle] pub const RAH: usize = 5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue