Rename *note_without_error as *note.
Because the variant name in `Level` is `Note`, and the `without_error` suffix is omitted in similar cases like `struct_allow` and `struct_help`.
This commit is contained in:
@@ -1870,7 +1870,7 @@ impl SharedEmitterMain {
|
||||
let mut err = match level {
|
||||
Level::Error { lint: false } => sess.struct_err(msg).forget_guarantee(),
|
||||
Level::Warning(_) => sess.struct_warn(msg),
|
||||
Level::Note => sess.struct_note_without_error(msg),
|
||||
Level::Note => sess.struct_note(msg),
|
||||
_ => bug!("Invalid inline asm diagnostic level"),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user