Rename NestedMetaItem::[Ll]iteral
as NestedMetaItem::[Ll]it
.
We already use a mix of `Literal` and `Lit`. The latter is better because it is shorter without causing any ambiguity.
This commit is contained in:
parent
1c65264f3c
commit
a60e337c88
19 changed files with 34 additions and 41 deletions
|
@ -48,7 +48,7 @@ impl MultiItemModifier for Expander {
|
|||
.into_iter()
|
||||
.filter_map(|nested_meta| match nested_meta {
|
||||
NestedMetaItem::MetaItem(meta) => Some(meta),
|
||||
NestedMetaItem::Literal(lit) => {
|
||||
NestedMetaItem::Lit(lit) => {
|
||||
// Reject `#[derive("Debug")]`.
|
||||
report_unexpected_meta_item_lit(sess, &lit);
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue