Port DeprecatedMacro to diag structs
This commit is contained in:
parent
c227f35a9c
commit
41a20b4c56
5 changed files with 153 additions and 97 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue