Skip to content

Commit 07dca96

Browse files
committed
Revert "Remove ty::Error on hanlde_filed_access"
This reverts commit 6e42589.
1 parent 5963b83 commit 07dca96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_passes/src/dead.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
154154
self.insert_def_id(def.non_enum_variant().fields[index].did);
155155
}
156156
ty::Tuple(..) => {}
157+
ty::Error(_) => {}
157158
kind => span_bug!(lhs.span, "named field access on non-ADT: {kind:?}"),
158159
}
159160
}

0 commit comments

Comments
 (0)