diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-01-30 16:57:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-30 16:57:46 +0100 |
| commit | ee2e9e1edabb7825df904c0117393059446c4462 (patch) | |
| tree | 1b55647c3fb65cfaf9e3359c3f201b42b261eeb4 /compiler/rustc_errors/src | |
| parent | efff26701bba0bc2e63310cc29994fa31becca24 (diff) | |
| parent | 492df34eea0215abb6e3e43dcdcef30df7be23f2 (diff) | |
| download | rust-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.rs | 1 |
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)) { |
