1
Fork 0

Rollup merge of #121441 - lcnr:typesystem-cleanup, r=compiler-errors

`DefId`  to `LocalDefId`
This commit is contained in:
Matthias Krüger 2024-02-22 18:09:55 +01:00 committed by GitHub
commit 5401098ead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -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, _) => {