@@ -7,7 +7,7 @@ use rustc_hir::def_id::DefId;
77use rustc_infer:: traits:: query:: NoSolution ;
88use rustc_infer:: traits:: Reveal ;
99use rustc_middle:: traits:: solve:: inspect:: CandidateKind ;
10- use rustc_middle:: traits:: solve:: { CanonicalResponse , Certainty , Goal , MaybeCause , QueryResult } ;
10+ use rustc_middle:: traits:: solve:: { CanonicalResponse , Certainty , Goal , QueryResult } ;
1111use rustc_middle:: traits:: BuiltinImplSource ;
1212use rustc_middle:: ty:: fast_reject:: { SimplifiedType , TreatParams } ;
1313use rustc_middle:: ty:: { self , Ty , TyCtxt } ;
@@ -299,7 +299,7 @@ pub(super) trait GoalKind<'tcx>:
299299 /// for unsize coercion in hir typeck and because it is difficult to
300300 /// otherwise recompute this for codegen. This is a bit of a mess but the
301301 /// easiest way to maintain the existing behavior for now.
302- fn consider_builtin_unsize_and_upcast_candidates (
302+ fn consider_builtin_unsize_candidates (
303303 ecx : & mut EvalCtxt < ' _ , ' tcx > ,
304304 goal : Goal < ' tcx , Self > ,
305305 ) -> Vec < ( CanonicalResponse < ' tcx > , BuiltinImplSource ) > ;
@@ -402,7 +402,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
402402 ecx. with_incremented_depth (
403403 |ecx| {
404404 let result = ecx. evaluate_added_goals_and_make_canonical_response (
405- Certainty :: Maybe ( MaybeCause :: Overflow ) ,
405+ Certainty :: OVERFLOW ,
406406 ) ?;
407407 Ok ( vec ! [ Candidate {
408408 source: CandidateSource :: BuiltinImpl ( BuiltinImplSource :: Misc ) ,
@@ -624,7 +624,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
624624 // There may be multiple unsize candidates for a trait with several supertraits:
625625 // `trait Foo: Bar<A> + Bar<B>` and `dyn Foo: Unsize<dyn Bar<_>>`
626626 if lang_items. unsize_trait ( ) == Some ( trait_def_id) {
627- for ( result, source) in G :: consider_builtin_unsize_and_upcast_candidates ( self , goal) {
627+ for ( result, source) in G :: consider_builtin_unsize_candidates ( self , goal) {
628628 candidates. push ( Candidate { source : CandidateSource :: BuiltinImpl ( source) , result } ) ;
629629 }
630630 }
0 commit comments