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 {
121121}
122122
123123trait IntoWellFormedGoal {
124+ // Transforms an existing goal into a WellFormed goal.
124125 fn into_wellformed_goal ( self ) -> Self ;
125126}
126127
127- impl < ' tcx > IntoGoal for DomainGoal < ' tcx > {
128- // Transforms an existing goal into a WellFormed goal.
128+ impl < ' tcx > IntoFromEnvGoal for DomainGoal < ' tcx > {
129129 fn into_from_env_goal ( self ) -> DomainGoal < ' tcx > {
130130 use self :: WhereClause :: * ;
131131
@@ -138,7 +138,7 @@ impl<'tcx> IntoGoal for DomainGoal<'tcx> {
138138 }
139139}
140140
141- impl < ' tcx > IntoFromEnvGoal for DomainGoal < ' tcx > {
141+ impl < ' tcx > IntoWellFormedGoal for DomainGoal < ' tcx > {
142142 fn into_wellformed_goal ( self ) -> DomainGoal < ' tcx > {
143143 use self :: DomainGoal :: * ;
144144 match self {
@@ -302,7 +302,7 @@ fn wellformed_from_bound<'a, 'tcx>(
302302
303303 // WellFormed(Self: Trait<P1..Pn>)
304304 let wellformed_trait = DomainGoal :: WellFormed ( WhereClauseAtom :: Implemented ( trait_pred) ) ;
305- // Impemented (Self: Trait<P1..Pn>)
305+ // Implemented (Self: Trait<P1..Pn>)
306306 let impl_trait = ty:: Binder :: dummy ( DomainGoal :: Holds ( WhereClauseAtom :: Implemented ( trait_pred) ) ) ;
307307 // WellFormed(WC)
308308 let wellformed_wc = where_clause
You can’t perform that action at this time.
0 commit comments