Skip to content

Commit a889ecd

Browse files
committed
UPDATE_EXPECT=1 for the failing test in main
1 parent 8b130f7 commit a889ecd

File tree

12 files changed

+212
-233
lines changed

12 files changed

+212
-233
lines changed

crates/formality-prove/src/prove/minimize/test.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ fn minimize_a() {
1717
let (env, subst) = env.existential_substitution(&term);
1818
let term = term.instantiate_with(&subst).unwrap();
1919

20-
expect!["(Env { variables: [?ty_1, ?ty_2, ?ty_3], bias: Soundness }, [?ty_1, ?ty_3])"]
20+
expect!["(Env { variables: [?ty_1, ?ty_2, ?ty_3], bias: Soundness, pending: [] }, [?ty_1, ?ty_3])"]
2121
.assert_eq(&format!("{:?}", (&env, &term)));
2222

2323
let (mut env_min, term_min, m) = minimize(env, term);
2424

25-
expect!["(Env { variables: [?ty_0, ?ty_1], bias: Soundness }, [?ty_0, ?ty_1])"]
25+
expect!["(Env { variables: [?ty_0, ?ty_1], bias: Soundness, pending: [] }, [?ty_0, ?ty_1])"]
2626
.assert_eq(&format!("{:?}", (&env_min, &term_min)));
2727

2828
let ty0 = term_min[0].as_variable().unwrap();
@@ -51,6 +51,7 @@ fn minimize_a() {
5151
?ty_3,
5252
],
5353
bias: Soundness,
54+
pending: [],
5455
},
5556
known_true: true,
5657
substitution: {

crates/formality-prove/src/test/adt_wf.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ fn well_formed_adt() {
3232
env: Env {
3333
variables: [],
3434
bias: Soundness,
35+
pending: [],
3536
},
3637
known_true: true,
3738
substitution: {},
@@ -51,21 +52,21 @@ fn not_well_formed_adt() {
5152
assumptions,
5253
Relation::WellFormed(goal),
5354
).assert_err(expect![[r#"
54-
judgment `prove { goal: {@ wf(X<u64>)}, assumptions: {}, env: Env { variables: [], bias: Soundness }, decls: decls(222, [trait Foo <ty> ], [impl Foo(u32)], [], [], [], [adt X <ty> where {Foo(^ty0_0)}], {}, {}) }` failed at the following rule(s):
55+
judgment `prove { goal: {@ wf(X<u64>)}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] }, decls: decls(222, [trait Foo <ty> ], [impl Foo(u32)], [], [], [], [adt X <ty> where {Foo(^ty0_0)}], {}, {}) }` failed at the following rule(s):
5556
failed at (src/file.rs:LL:CC) because
56-
judgment `prove_wc_list { goal: {@ wf(X<u64>)}, assumptions: {}, env: Env { variables: [], bias: Soundness } }` failed at the following rule(s):
57+
judgment `prove_wc_list { goal: {@ wf(X<u64>)}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
5758
the rule "some" failed at step #0 (src/file.rs:LL:CC) because
58-
judgment `prove_wc { goal: @ wf(X<u64>), assumptions: {}, env: Env { variables: [], bias: Soundness } }` failed at the following rule(s):
59+
judgment `prove_wc { goal: @ wf(X<u64>), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
5960
the rule "parameter well formed" failed at step #0 (src/file.rs:LL:CC) because
60-
judgment `prove_wf { goal: X<u64>, assumptions: {}, env: Env { variables: [], bias: Soundness } }` failed at the following rule(s):
61+
judgment `prove_wf { goal: X<u64>, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
6162
the rule "ADT" failed at step #3 (src/file.rs:LL:CC) because
62-
judgment `prove_after { constraints: Constraints { env: Env { variables: [], bias: Soundness }, known_true: true, substitution: {} }, goal: {Foo(u64)}, assumptions: {} }` failed at the following rule(s):
63+
judgment `prove_after { constraints: Constraints { env: Env { variables: [], bias: Soundness, pending: [] }, known_true: true, substitution: {} }, goal: {Foo(u64)}, assumptions: {} }` failed at the following rule(s):
6364
the rule "prove_after" failed at step #1 (src/file.rs:LL:CC) because
64-
judgment `prove { goal: {Foo(u64)}, assumptions: {}, env: Env { variables: [], bias: Soundness }, decls: decls(222, [trait Foo <ty> ], [impl Foo(u32)], [], [], [], [adt X <ty> where {Foo(^ty0_0)}], {}, {}) }` failed at the following rule(s):
65+
judgment `prove { goal: {Foo(u64)}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] }, decls: decls(222, [trait Foo <ty> ], [impl Foo(u32)], [], [], [], [adt X <ty> where {Foo(^ty0_0)}], {}, {}) }` failed at the following rule(s):
6566
failed at (src/file.rs:LL:CC) because
66-
judgment `prove_wc_list { goal: {Foo(u64)}, assumptions: {}, env: Env { variables: [], bias: Soundness } }` failed at the following rule(s):
67+
judgment `prove_wc_list { goal: {Foo(u64)}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
6768
the rule "some" failed at step #0 (src/file.rs:LL:CC) because
68-
judgment `prove_wc { goal: Foo(u64), assumptions: {}, env: Env { variables: [], bias: Soundness } }` failed at the following rule(s):
69+
judgment `prove_wc { goal: Foo(u64), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
6970
the rule "trait implied bound" failed at step #0 (src/file.rs:LL:CC) because
7071
expression evaluated to an empty collection: `decls.trait_invariants()`"#]]);
7172
}

0 commit comments

Comments
 (0)