Skip to content

Commit 0a2a102

Browse files
committed
Remove superfluous traversable impl for ErrorGuaranteed
1 parent 5568ed3 commit 0a2a102

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
@@ -127,8 +127,7 @@ where
127127

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

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

134133
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
@@ -423,7 +423,6 @@ TrivialLiftImpls! {
423423
TrivialTypeTraversalImpls! {
424424
crate::ty::BoundConstness,
425425
::rustc_span::Span,
426-
::rustc_errors::ErrorGuaranteed,
427426
}
428427
// For some things about which the type library does not know, or does not
429428
// provide any traversal implementations, we need to provide a traversal

0 commit comments

Comments
 (0)