about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-30 17:59:28 -0400
committerGitHub <noreply@github.com>2025-03-30 17:59:28 -0400
commiteb424222582784ddf5d5aceb408980d4d3401e4d (patch)
treeab55a4606d960189d0005c57a0db79bef0ff0857 /compiler/rustc_interface/src/errors.rs
parent1296a23bb4eeba423254d4c9f3f99f948616a11d (diff)
parent2dfd2a2a242e920b7378328b87f901652d9d81be (diff)
downloadrust-eb424222582784ddf5d5aceb408980d4d3401e4d.tar.gz
rust-eb424222582784ddf5d5aceb408980d4d3401e4d.zip
Rollup merge of #139122 - petrochenkov:norerr, r=compiler-errors
Remove attribute `#[rustc_error]`

It was an ancient way to write `check-pass` tests, but now it's no longer necessary (except for the `delayed_bug_from_inside_query` flavor, which is retained).
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
-rw-r--r--compiler/rustc_interface/src/errors.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_interface/src/errors.rs b/compiler/rustc_interface/src/errors.rs
index ef0235b5577..6b39b4f1891 100644
--- a/compiler/rustc_interface/src/errors.rs
+++ b/compiler/rustc_interface/src/errors.rs
@@ -74,20 +74,6 @@ pub struct TempsDirError;
 pub struct OutDirError;
 
 #[derive(Diagnostic)]
-#[diag(interface_rustc_error_fatal)]
-pub struct RustcErrorFatal {
-    #[primary_span]
-    pub span: Span,
-}
-
-#[derive(Diagnostic)]
-#[diag(interface_rustc_error_unexpected_annotation)]
-pub struct RustcErrorUnexpectedAnnotation {
-    #[primary_span]
-    pub span: Span,
-}
-
-#[derive(Diagnostic)]
 #[diag(interface_failed_writing_file)]
 pub struct FailedWritingFile<'a> {
     pub path: &'a Path,