@@ -7,7 +7,7 @@ use rustc_hir::def_id::DefId;
7
7
use rustc_infer:: traits:: query:: NoSolution ;
8
8
use rustc_infer:: traits:: Reveal ;
9
9
use 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 } ;
11
11
use rustc_middle:: traits:: BuiltinImplSource ;
12
12
use rustc_middle:: ty:: fast_reject:: { SimplifiedType , TreatParams } ;
13
13
use rustc_middle:: ty:: { self , Ty , TyCtxt } ;
@@ -299,7 +299,7 @@ pub(super) trait GoalKind<'tcx>:
299
299
/// for unsize coercion in hir typeck and because it is difficult to
300
300
/// otherwise recompute this for codegen. This is a bit of a mess but the
301
301
/// easiest way to maintain the existing behavior for now.
302
- fn consider_builtin_unsize_and_upcast_candidates (
302
+ fn consider_builtin_unsize_candidates (
303
303
ecx : & mut EvalCtxt < ' _ , ' tcx > ,
304
304
goal : Goal < ' tcx , Self > ,
305
305
) -> Vec < ( CanonicalResponse < ' tcx > , BuiltinImplSource ) > ;
@@ -402,7 +402,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
402
402
ecx. with_incremented_depth (
403
403
|ecx| {
404
404
let result = ecx. evaluate_added_goals_and_make_canonical_response (
405
- Certainty :: Maybe ( MaybeCause :: Overflow ) ,
405
+ Certainty :: OVERFLOW ,
406
406
) ?;
407
407
Ok ( vec ! [ Candidate {
408
408
source: CandidateSource :: BuiltinImpl ( BuiltinImplSource :: Misc ) ,
@@ -624,7 +624,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
624
624
// There may be multiple unsize candidates for a trait with several supertraits:
625
625
// `trait Foo: Bar<A> + Bar<B>` and `dyn Foo: Unsize<dyn Bar<_>>`
626
626
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) {
628
628
candidates. push ( Candidate { source : CandidateSource :: BuiltinImpl ( source) , result } ) ;
629
629
}
630
630
}
0 commit comments