Skip to content

Commit 9560c58

Browse files
committed
Avoid some rustc_errors:: qualifiers.
These are misleading, because the mixture of `Level` and `rustc_errors::Level` makes it look like there are two different types involved.
1 parent 1e92223 commit 9560c58

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+3
-3
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,9 +1848,9 @@ impl SharedEmitterMain {
18481848
}
18491849
Ok(SharedEmitterMessage::InlineAsmError(cookie, msg, level, source)) => {
18501850
let err_level = match level {
1851-
Level::Error { lint: false } => rustc_errors::Level::Error { lint: false },
1852-
Level::Warning(_) => rustc_errors::Level::Warning(None),
1853-
Level::Note => rustc_errors::Level::Note,
1851+
Level::Error { lint: false } => Level::Error { lint: false },
1852+
Level::Warning(_) => Level::Warning(None),
1853+
Level::Note => Level::Note,
18541854
_ => bug!("Invalid inline asm diagnostic level"),
18551855
};
18561856
let msg = msg.strip_prefix("error: ").unwrap_or(&msg).to_string();

0 commit comments

Comments
 (0)