Skip to content

Commit

Permalink
Split yields tests whose results differ between solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Dec 24, 2021

Verified

This commit was signed with the committer’s verified signature.
1 parent 73ce746 commit a9b0371
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/test/misc.rs
Original file line number Diff line number Diff line change
@@ -774,8 +774,10 @@ fn ambiguous_unification_in_fn() {
exists<int T, U> {
MyClosure<fn(&'static U) -> ()>: FnOnce<(&'static T,)>
}
} yields {
expect![["Unique"]]
} yields[SolverChoice::slg_default()] {
expect![["Unique; for<?U0> { substitution [?0 := ^0.0, ?1 := ^0.0], lifetime constraints [InEnvironment { environment: Env([]), goal: 'static: 'static }, InEnvironment { environment: Env([]), goal: 'static: 'static }] }"]]
} yields[SolverChoice::recursive_default()] {
expect![["Unique; for<?U0> { substitution [?0 := ^0.0, ?1 := ^0.0], lifetime constraints [InEnvironment { environment: Env([]), goal: 'static: 'static }] }"]]
}
}
}
6 changes: 4 additions & 2 deletions tests/test/numerics.rs
Original file line number Diff line number Diff line change
@@ -260,8 +260,10 @@ fn shl_ice() {
exists<U> {
u32: Shl<U>
}
} yields {
expect![["Ambiguous"]]
} yields[SolverChoice::slg_default()] {
expect![["Ambiguous; definite substitution for<?U0,?U0> { [?0 := (&'^0.0 ^0.1)] }"]]
} yields[SolverChoice::recursive_default()] {
expect![["Ambiguous; no inference guidance"]]
}
}
}

0 comments on commit a9b0371

Please sign in to comment.