Update rustc_abi dependency

This commit is contained in:
Lukas Wirth 2023-09-29 20:42:26 +02:00
parent 65532e417d
commit 40acc5250f
9 changed files with 135 additions and 98 deletions

View file

@ -402,10 +402,9 @@ pub(super) fn definition(
|&it| it.layout(db),
|_| {
let var_def = it.parent_def(db);
let id = it.index();
match var_def {
hir::VariantDef::Struct(s) => {
Adt::from(s).layout(db).ok().and_then(|layout| layout.field_offset(id))
Adt::from(s).layout(db).ok().and_then(|layout| layout.field_offset(it))
}
_ => None,
}