about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-22 21:34:39 +0100
committerGitHub <noreply@github.com>2025-03-22 21:34:39 +0100
commit4457da3dc48600a384e94335a05dffc5c6594eba (patch)
tree1d4ac253cb110dfe6fe91def3c5772abff464e23 /compiler/rustc_interface/src/errors.rs
parent9a9859637a2d586cea8d99e5937abc4e078f47b1 (diff)
parentcd929bfccb60cfae7624c7ae1a00efb6df069337 (diff)
downloadrust-4457da3dc48600a384e94335a05dffc5c6594eba.tar.gz
rust-4457da3dc48600a384e94335a05dffc5c6594eba.zip
Rollup merge of #138786 - bjorn3:driver_code_move, r=compiler-errors
Move some driver code around

`--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]