Skip to content

Commit dabd3f6

Browse files
committed
split IntoWellFormedGoal
1 parent 329d03a commit dabd3f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_traits/lowering.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ trait IntoFromEnvGoal {
121121
}
122122

123123
trait 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

0 commit comments

Comments
 (0)