diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-04 11:43:19 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-04 11:43:19 +1100 |
| commit | 9560c58c2ae77569e9855136537834669f5bbc3b (patch) | |
| tree | 7f05e394ae3cce21d992207ae799dbdf97dd9617 /compiler/rustc_codegen_ssa/src/back | |
| parent | 1e922239256348270dd58fc72a24ad0972ddafe4 (diff) | |
| download | rust-9560c58c2ae77569e9855136537834669f5bbc3b.tar.gz rust-9560c58c2ae77569e9855136537834669f5bbc3b.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index cb124704785..a465c833264 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -1848,9 +1848,9 @@ impl SharedEmitterMain { } Ok(SharedEmitterMessage::InlineAsmError(cookie, msg, level, source)) => { let err_level = match level { - Level::Error { lint: false } => rustc_errors::Level::Error { lint: false }, - Level::Warning(_) => rustc_errors::Level::Warning(None), - Level::Note => rustc_errors::Level::Note, + Level::Error { lint: false } => Level::Error { lint: false }, + Level::Warning(_) => Level::Warning(None), + Level::Note => Level::Note, _ => bug!("Invalid inline asm diagnostic level"), }; let msg = msg.strip_prefix("error: ").unwrap_or(&msg).to_string(); |
