File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,11 @@ trait IntoFromEnvGoal {
121
121
}
122
122
123
123
trait IntoWellFormedGoal {
124
+ // Transforms an existing goal into a WellFormed goal.
124
125
fn into_wellformed_goal ( self ) -> Self ;
125
126
}
126
127
127
- impl < ' tcx > IntoGoal for DomainGoal < ' tcx > {
128
- // Transforms an existing goal into a WellFormed goal.
128
+ impl < ' tcx > IntoFromEnvGoal for DomainGoal < ' tcx > {
129
129
fn into_from_env_goal ( self ) -> DomainGoal < ' tcx > {
130
130
use self :: WhereClause :: * ;
131
131
@@ -138,7 +138,7 @@ impl<'tcx> IntoGoal for DomainGoal<'tcx> {
138
138
}
139
139
}
140
140
141
- impl < ' tcx > IntoFromEnvGoal for DomainGoal < ' tcx > {
141
+ impl < ' tcx > IntoWellFormedGoal for DomainGoal < ' tcx > {
142
142
fn into_wellformed_goal ( self ) -> DomainGoal < ' tcx > {
143
143
use self :: DomainGoal :: * ;
144
144
match self {
@@ -302,7 +302,7 @@ fn wellformed_from_bound<'a, 'tcx>(
302
302
303
303
// WellFormed(Self: Trait<P1..Pn>)
304
304
let wellformed_trait = DomainGoal :: WellFormed ( WhereClauseAtom :: Implemented ( trait_pred) ) ;
305
- // Impemented (Self: Trait<P1..Pn>)
305
+ // Implemented (Self: Trait<P1..Pn>)
306
306
let impl_trait = ty:: Binder :: dummy ( DomainGoal :: Holds ( WhereClauseAtom :: Implemented ( trait_pred) ) ) ;
307
307
// WellFormed(WC)
308
308
let wellformed_wc = where_clause
You can’t perform that action at this time.
0 commit comments