Refactor away NestedMetaItemKind

Remove methods `Attribute::span` and `MetaItem::span` duplicating public fields
This commit is contained in:
Vadim Petrochenkov
2019-03-03 20:56:24 +03:00
parent 63116d313d
commit 0cf96131f4
26 changed files with 126 additions and 145 deletions

View File

@@ -227,7 +227,7 @@ fn should_panic(cx: &ExtCtxt<'_>, i: &ast::Item) -> ShouldPanic {
.and_then(|mi| mi.value_str());
if list.len() != 1 || msg.is_none() {
sd.struct_span_warn(
attr.span(),
attr.span,
"argument must be of the form: \
`expected = \"error message\"`"
).note("Errors in this attribute were erroneously \