diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-11-28 17:25:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-28 17:25:46 +0100 |
| commit | 63ec33e929f60177a02ae3d059482e3743f1d8cc (patch) | |
| tree | 4f2119f00183d398b744abb56fbddc6f184c0c90 /compiler/rustc_middle/src | |
| parent | 8a09420ac48658cad726e0a6997687ceac4151e3 (diff) | |
| parent | a60e337c884f3201e693e6a5111b663bbc54de27 (diff) | |
| download | rust-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.rs | 5 |
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() |
