We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d51fc4 commit 1d34cdcCopy full SHA for 1d34cdc
crates/hir-def/src/nameres/collector.rs
@@ -1138,7 +1138,19 @@ impl DefCollector<'_> {
1138
1139
let def = match resolver(path.clone()) {
1140
Some(def) if def.is_attribute() => def,
1141
- _ => return true,
+ _ => {
1142
+ self.def_map.diagnostics.push(DefDiagnostic::unresolved_proc_macro(
1143
+ directive.module_id,
1144
+ MacroCallKind::Attr {
1145
+ ast_id,
1146
+ attr_args: Default::default(),
1147
+ invoc_attr_index: attr.id.ast_index,
1148
+ is_derive: false,
1149
+ },
1150
+ self.proc_macro_err.clone(),
1151
+ ));
1152
+ return true;
1153
+ }
1154
};
1155
if matches!(
1156
def,
0 commit comments