Rollup merge of #104804 - nnethercote:MetaItemLit, r=petrochenkov
Rename `ast::Lit` as `ast::MetaItemLit`. And some other literal cleanups. r? `@petrochenkov`
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user