File tree 1 file changed +13
-10
lines changed
compiler/rustc_trait_selection/src/solve/project_goals
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -55,16 +55,19 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
55
55
}
56
56
57
57
let expected = match self . try_normalize_ty ( goal. param_env , expected) {
58
- Some ( ty) => if ty. is_ty_var ( ) {
59
- return self . evaluate_added_goals_and_make_canonical_response (
60
- Certainty :: AMBIGUOUS ,
61
- )
62
- } else {
63
- ty
64
- } ,
65
- None => return self . evaluate_added_goals_and_make_canonical_response (
66
- Certainty :: OVERFLOW ,
67
- ) ,
58
+ Some ( ty) => {
59
+ if ty. is_ty_var ( ) {
60
+ return self . evaluate_added_goals_and_make_canonical_response (
61
+ Certainty :: AMBIGUOUS ,
62
+ ) ;
63
+ } else {
64
+ ty
65
+ }
66
+ }
67
+ None => {
68
+ return self
69
+ . evaluate_added_goals_and_make_canonical_response ( Certainty :: OVERFLOW ) ;
70
+ }
68
71
} ;
69
72
70
73
// Otherwise, define a new opaque type
You can’t perform that action at this time.
0 commit comments