summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-06 15:23:54 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-21 13:23:07 +0000
commit41f1ed11c2ef656737af2b15a9f58e84421424bb (patch)
tree055ce35f7dfa089023e64fbee100e50dfd2fae66 /compiler/rustc_interface/src/errors.rs
parent7d3965e0cdc1614335e2c3d18234963bb0827160 (diff)
downloadrust-41f1ed11c2ef656737af2b15a9f58e84421424bb.tar.gz
rust-41f1ed11c2ef656737af2b15a9f58e84421424bb.zip
Move some calls to before calling codegen_crate
`--emit mir`, `#[rustc_symbol_name]` and `#[rustc_def_path]` now run
before codegen and thus work even if codegen fails. This can help with
debugging.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
-rw-r--r--compiler/rustc_interface/src/errors.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_interface/src/errors.rs b/compiler/rustc_interface/src/errors.rs
index eed729a1777..ef0235b5577 100644
--- a/compiler/rustc_interface/src/errors.rs
+++ b/compiler/rustc_interface/src/errors.rs
@@ -74,12 +74,6 @@ pub struct TempsDirError;
 pub struct OutDirError;
 
 #[derive(Diagnostic)]
-#[diag(interface_cant_emit_mir)]
-pub struct CantEmitMIR {
-    pub error: io::Error,
-}
-
-#[derive(Diagnostic)]
 #[diag(interface_rustc_error_fatal)]
 pub struct RustcErrorFatal {
     #[primary_span]