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
|
@ -2158,7 +2158,7 @@ fn check_link_ordinal(tcx: TyCtxt<'_>, attr: &ast::Attribute) -> Option<u16> {
|
|||
let meta_item_list = attr.meta_item_list();
|
||||
let meta_item_list = meta_item_list.as_deref();
|
||||
let sole_meta_list = match meta_item_list {
|
||||
Some([item]) => item.literal(),
|
||||
Some([item]) => item.lit(),
|
||||
Some(_) => {
|
||||
tcx.sess
|
||||
.struct_span_err(attr.span, "incorrect number of arguments to `#[link_ordinal]`")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue