Skip to content

Commit 73397fe

Browse files
committed
Remove traversable impl for ErrorGuaranteed
1 parent 2463fef commit 73397fe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

compiler/rustc_hir_analysis/src/check/wfcheck.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ where
128128

129129
let outlives_env = OutlivesEnvironment::with_bounds(param_env, implied_bounds);
130130

131-
wfcx.ocx.resolve_regions_and_report_errors(body_def_id, &outlives_env)?;
132-
infcx.tainted_by_errors().error_reported()
131+
wfcx.ocx.resolve_regions_and_report_errors(body_def_id, &outlives_env)
133132
}
134133

135134
fn check_well_formed(tcx: TyCtxt<'_>, def_id: hir::OwnerId) -> Result<(), ErrorGuaranteed> {

compiler/rustc_middle/src/ty/structural_impls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ TrivialLiftImpls! {
422422
TrivialTypeTraversalImpls! {
423423
crate::ty::BoundConstness,
424424
::rustc_span::Span,
425-
::rustc_errors::ErrorGuaranteed,
426425
}
427426
// For some things about which the type library does not know, or does not
428427
// provide any traversal implementations, we need to provide a traversal

0 commit comments

Comments
 (0)