1
Fork 0

Remove visible path calculation from allowed deprecation lint

This commit is contained in:
Alik Aslanyan 2021-09-30 15:15:10 +04:00
parent 11491938f8
commit d98ac573a4
No known key found for this signature in database
GPG key ID: 7FE6FD5D5BC4CCF6
4 changed files with 78 additions and 47 deletions

View file

@ -1137,7 +1137,7 @@ impl<'a> Resolver<'a> {
}
if let Some(depr) = &ext.deprecation {
let path = pprust::path_to_string(&path);
let (message, lint) = stability::deprecation_message(depr, "macro", &path);
let (message, lint) = stability::deprecation_message_and_lint(depr, "macro", &path);
stability::early_report_deprecation(
&mut self.lint_buffer,
&message,