Rollup merge of #121441 - lcnr:typesystem-cleanup, r=compiler-errors
`DefId` to `LocalDefId`
This commit is contained in:
commit
5401098ead
2 changed files with 4 additions and 3 deletions
|
@ -1027,7 +1027,7 @@ fn adt_def(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::AdtDef<'_> {
|
|||
let repr = if is_anonymous {
|
||||
tcx.adt_def(tcx.local_parent(def_id)).repr()
|
||||
} else {
|
||||
tcx.repr_options_of_def(def_id.to_def_id())
|
||||
tcx.repr_options_of_def(def_id)
|
||||
};
|
||||
let (kind, variants) = match &item.kind {
|
||||
ItemKind::Enum(def, _) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue