diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-11-24 15:00:09 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-11-28 15:18:53 +1100 |
| commit | a60e337c884f3201e693e6a5111b663bbc54de27 (patch) | |
| tree | 77b4d972c4bff44fba887c5e1bd8f47ad6a71174 /compiler/rustc_resolve | |
| parent | 1c65264f3cbfb9b6e4b06ff0a89fc706f2d20a85 (diff) | |
| download | rust-a60e337c884f3201e693e6a5111b663bbc54de27.tar.gz rust-a60e337c884f3201e693e6a5111b663bbc54de27.zip | |
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.
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index 82214d4c3c4..4ef89cfb255 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -1989,7 +1989,7 @@ impl<'a> Resolver<'a> { .find(|a| a.has_name(sym::rustc_legacy_const_generics))?; let mut ret = Vec::new(); for meta in attr.meta_item_list()? { - match meta.literal()?.kind { + match meta.lit()?.kind { LitKind::Int(a, _) => ret.push(a as usize), _ => panic!("invalid arg index"), } |
