Skip to content

Commit

Permalink
Auto merge of #680 - jackh726:chalk-fix, r=nikomatsakis
Browse files Browse the repository at this point in the history
No environment in Constraints

Should have been included in #671. Oops.
  • Loading branch information
bors committed Feb 1, 2021
2 parents 02dd128 + 10d6b11 commit 0e50bae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chalk-solve/src/clauses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ pub fn program_clauses_that_could_match<I: Interner>(
b: b.clone(),
})),
Some(InEnvironment::new(
environment,
&Environment::new(interner),
Constraint::LifetimeOutlives(a, b),
)),
);
Expand All @@ -550,7 +550,7 @@ pub fn program_clauses_that_could_match<I: Interner>(
lifetime: lifetime.clone(),
})),
Some(InEnvironment::new(
environment,
&Environment::new(interner),
Constraint::TypeOutlives(ty, lifetime),
)),
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn generator_test() {
}
}
} yields {
"Unique; substitution [], lifetime constraints [InEnvironment { environment: Env([for<> FromEnv(!1_0: Send)]), goal: '!2_0: '!2_1 }, InEnvironment { environment: Env([for<> FromEnv(!1_0: Send)]), goal: '!2_1: '!2_0 }]"
"Unique; substitution [], lifetime constraints [InEnvironment { environment: Env([]), goal: '!2_0: '!2_1 }, InEnvironment { environment: Env([]), goal: '!2_1: '!2_0 }]"
}

goal {
Expand Down
2 changes: 1 addition & 1 deletion tests/test/unsize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ fn ty_to_dyn_unsizing() {
}
}
} yields {
"Unique; substitution [], lifetime constraints [InEnvironment { environment: Env([for<> FromEnv(!2_0:Sized)]), goal: FooNotSized<!2_0>: '!1_0 }]"
"Unique; substitution [], lifetime constraints [InEnvironment { environment: Env([]), goal: FooNotSized<!2_0>: '!1_0 }]"
}
}
}
Expand Down

0 comments on commit 0e50bae

Please sign in to comment.