about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-28 17:25:46 +0100
committerGitHub <noreply@github.com>2022-11-28 17:25:46 +0100
commit63ec33e929f60177a02ae3d059482e3743f1d8cc (patch)
tree4f2119f00183d398b744abb56fbddc6f184c0c90 /compiler/rustc_middle/src
parent8a09420ac48658cad726e0a6997687ceac4151e3 (diff)
parenta60e337c884f3201e693e6a5111b663bbc54de27 (diff)
downloadrust-63ec33e929f60177a02ae3d059482e3743f1d8cc.tar.gz
rust-63ec33e929f60177a02ae3d059482e3743f1d8cc.zip
Rollup merge of #104804 - nnethercote:MetaItemLit, r=petrochenkov
Rename `ast::Lit` as `ast::MetaItemLit`.

And some other literal cleanups.

r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/context.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index bf30a403d9b..297433d37c4 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -1191,8 +1191,9 @@ impl<'tcx> TyCtxt<'tcx> {
             debug!("layout_scalar_valid_range: attr={:?}", attr);
             if let Some(
                 &[
-                    ast::NestedMetaItem::Literal(ast::Lit {
-                        kind: ast::LitKind::Int(a, _), ..
+                    ast::NestedMetaItem::Lit(ast::MetaItemLit {
+                        kind: ast::LitKind::Int(a, _),
+                        ..
                     }),
                 ],
             ) = attr.meta_item_list().as_deref()