about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-11-24 15:00:09 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-11-28 15:18:53 +1100
commita60e337c884f3201e693e6a5111b663bbc54de27 (patch)
tree77b4d972c4bff44fba887c5e1bd8f47ad6a71174 /compiler/rustc_interface/src
parent1c65264f3cbfb9b6e4b06ff0a89fc706f2d20a85 (diff)
downloadrust-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.rs2
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 {