1
Fork 0

Port DeprecatedMacro to diag structs

This commit is contained in:
Xiretza 2024-04-21 13:24:25 +00:00
parent c227f35a9c
commit 41a20b4c56
5 changed files with 153 additions and 97 deletions

View file

@ -852,14 +852,12 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
}
if let Some(depr) = &ext.deprecation {
let path = pprust::path_to_string(path);
let (message, lint) = stability::deprecation_message_and_lint(depr, "macro", &path);
stability::early_report_deprecation(
stability::early_report_macro_deprecation(
&mut self.lint_buffer,
message,
depr.suggestion,
lint,
depr,
span,
node_id,
path,
);
}
}