Skip to content

Commit 3f384ab

Browse files
committed
Remove ty::Error on hanlde_filed_access
This ty::Error was added in #123428, but the root cause is the same as #125323. After report_error is fixed, the arm isn't needed anymore. Signed-off-by: Shunpoco <[email protected]>
1 parent db8a41d commit 3f384ab

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_passes/src/dead.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
166166
self.insert_def_id(def.non_enum_variant().fields[index].did);
167167
}
168168
ty::Tuple(..) => {}
169-
ty::Error(_) => {}
170169
kind => span_bug!(lhs.span, "named field access on non-ADT: {kind:?}"),
171170
}
172171
}

0 commit comments

Comments
 (0)