File tree 1 file changed +11
-3
lines changed
compiler/rustc_next_trait_solver/src/solve
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,20 @@ enum GoalEvaluationKind {
48
48
Nested ,
49
49
}
50
50
51
+ // FIXME(trait-system-refactor-initiative#117): we don't detect whether a response
52
+ // ended up pulling down any universes.
51
53
fn has_no_inference_or_external_constraints < I : Interner > (
52
54
response : ty:: Canonical < I , Response < I > > ,
53
55
) -> bool {
54
- response. value . external_constraints . region_constraints . is_empty ( )
55
- && response. value . var_values . is_identity ( )
56
- && response. value . external_constraints . opaque_types . is_empty ( )
56
+ let ExternalConstraintsData {
57
+ ref region_constraints,
58
+ ref opaque_types,
59
+ ref normalization_nested_goals,
60
+ } = * response. value . external_constraints ;
61
+ response. value . var_values . is_identity ( )
62
+ && region_constraints. is_empty ( )
63
+ && opaque_types. is_empty ( )
64
+ && normalization_nested_goals. is_empty ( )
57
65
}
58
66
59
67
impl < ' a , D , I > EvalCtxt < ' a , D >
You can’t perform that action at this time.
0 commit comments