Supress unhelpful diagnostics for unresolved top level attributes

This commit is contained in:
yukang 2024-01-27 19:09:55 +08:00
parent 0ea334ab73
commit 492df34eea
30 changed files with 100 additions and 202 deletions

View file

@ -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)) {