Skip to content

Commit 6e42589

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

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_passes/src/dead.rs

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

0 commit comments

Comments
 (0)