Skip to content

Commit 2f8c93e

Browse files
committed
remove fast path
1 parent c7b2252 commit 2f8c93e

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

compiler/rustc_trait_selection/src/solve/delegate.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rustc_middle::ty::{
1616
};
1717
use rustc_span::{DUMMY_SP, ErrorGuaranteed, Span};
1818

19-
use crate::traits::{EvaluateConstErr, ObligationCause, sizedness_fast_path, specialization_graph};
19+
use crate::traits::{EvaluateConstErr, sizedness_fast_path, specialization_graph};
2020

2121
#[repr(transparent)]
2222
pub struct SolverDelegate<'tcx>(InferCtxt<'tcx>);
@@ -115,20 +115,6 @@ impl<'tcx> rustc_next_trait_solver::delegate::SolverDelegate for SolverDelegate<
115115
);
116116
Some(Certainty::Yes)
117117
}
118-
ty::PredicateKind::Clause(ty::ClauseKind::TypeOutlives(outlives)) => {
119-
// `TypeOutlives` obligations in the `InferCtxt` must already be normalized.
120-
let outlives = self.0.resolve_vars_if_possible(outlives);
121-
if outlives.0.has_aliases() {
122-
None
123-
} else {
124-
self.0.register_type_outlives_constraint(
125-
outlives.0,
126-
outlives.1,
127-
&ObligationCause::dummy_with_span(span),
128-
);
129-
Some(Certainty::Yes)
130-
}
131-
}
132118
ty::PredicateKind::Subtype(ty::SubtypePredicate { a, b, .. })
133119
| ty::PredicateKind::Coerce(ty::CoercePredicate { a, b }) => {
134120
match (self.shallow_resolve(a).kind(), self.shallow_resolve(b).kind()) {

0 commit comments

Comments
 (0)