about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-01-30 16:57:46 +0100
committerGitHub <noreply@github.com>2024-01-30 16:57:46 +0100
commitee2e9e1edabb7825df904c0117393059446c4462 (patch)
tree1b55647c3fb65cfaf9e3359c3f201b42b261eeb4 /compiler/rustc_errors/src
parentefff26701bba0bc2e63310cc29994fa31becca24 (diff)
parent492df34eea0215abb6e3e43dcdcef30df7be23f2 (diff)
downloadrust-ee2e9e1edabb7825df904c0117393059446c4462.tar.gz
rust-ee2e9e1edabb7825df904c0117393059446c4462.zip
Rollup merge of #118533 - chenyukang:yukang-fix-118455, r=petrochenkov
Suppress unhelpful diagnostics for unresolved top level attributes

Fixes #118455, unresolved top level attribute error didn't imported prelude and already have emitted an error, report builtin macro and attributes error by the way, so `check_invalid_crate_level_attr` in can ignore them.

Also fixes #89566, fixes #67107.

r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 9090adea156..960b68196ff 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -514,6 +514,7 @@ pub enum StashKey {
     MaybeForgetReturn,
     /// Query cycle detected, stashing in favor of a better error.
     Cycle,
+    UndeterminedMacroResolution,
 }
 
 fn default_track_diagnostic(diag: Diagnostic, f: &mut dyn FnMut(Diagnostic)) {