Use the right span for errors about #[deprecated] attributes.
This commit is contained in:
parent
0e2337a5d6
commit
706bc33651
7 changed files with 53 additions and 35 deletions
|
@ -793,7 +793,7 @@ impl SyntaxExtension {
|
|||
allow_internal_unsafe: sess.contains_name(attrs, sym::allow_internal_unsafe),
|
||||
local_inner_macros,
|
||||
stability,
|
||||
deprecation: attr::find_deprecation(&sess, attrs, span),
|
||||
deprecation: attr::find_deprecation(&sess, attrs).map(|(d, _)| d),
|
||||
helper_attrs,
|
||||
edition,
|
||||
is_builtin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue