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_interface/src | |
| 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_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index 99c934862c4..4c22ab68a56 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -194,7 +194,7 @@ pub fn parse_check_cfg(specs: Vec<String>) -> CheckCfg { for val in values { if let Some(LitKind::Str(s, _)) = - val.literal().map(|lit| &lit.kind) + val.lit().map(|lit| &lit.kind) { ident_values.insert(s.to_string()); } else { |
