Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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