1
Fork 0

Use the right span for errors about #[deprecated] attributes.

This commit is contained in:
Mara Bos 2020-11-01 12:29:57 +01:00
parent 0e2337a5d6
commit 706bc33651
7 changed files with 53 additions and 35 deletions

View file

@ -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,