refactor(rustc_middle): Substs -> GenericArg
This commit is contained in:
parent
df5c2cf9bc
commit
e55583c4b8
466 changed files with 4574 additions and 4604 deletions
|
@ -48,7 +48,7 @@ impl EnumSizeOpt {
|
|||
alloc_cache: &mut FxHashMap<Ty<'tcx>, AllocId>,
|
||||
) -> Option<(AdtDef<'tcx>, usize, AllocId)> {
|
||||
let adt_def = match ty.kind() {
|
||||
ty::Adt(adt_def, _substs) if adt_def.is_enum() => adt_def,
|
||||
ty::Adt(adt_def, _args) if adt_def.is_enum() => adt_def,
|
||||
_ => return None,
|
||||
};
|
||||
let layout = tcx.layout_of(param_env.and(ty)).ok()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue