Skip to content

-Z trait-solver=next: Deduplicate region constraints in query responses #111172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Removed debug printlns (whoops)
  • Loading branch information
ndrewxie committed May 28, 2023
commit a4e4973a95bfd9bad7f7ec45da992f330757b00f
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ enum ConstraintType<'tcx> {

impl<'tcx> Deduper<'tcx> {
pub fn dedup(tcx: TyCtxt<'tcx>, input: &mut Canonical<'tcx, Response<'tcx>>) {
println!("INPUT: {:#?}", input);
let mut constraints = input.value.external_constraints.deref().clone();
let mut deduper = Self {
tcx,
Expand All @@ -43,7 +42,6 @@ impl<'tcx> Deduper<'tcx> {
};
deduper.dedup_internal(&mut constraints, &mut input.variables, &mut input.max_universe);
input.value.external_constraints = tcx.mk_external_constraints(constraints);
println!("OUTPUT: {:#?}", input);
}
fn dedup_internal(
&mut self,
Expand Down