Skip to content

Commit e207b38

Browse files
committed
UPDATE_EXPECT=1
1 parent 96b5b08 commit e207b38

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

src/test/mir_fn_bodies.rs

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,13 @@ fn test_invalid_assign_statement() {
357357
failed at (src/file.rs:LL:CC) because
358358
judgment `prove_wc_list { goal: {u32 <: ()}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
359359
the rule "some" failed at step #0 (src/file.rs:LL:CC) because
360-
judgment had no applicable rules: `prove_wc { goal: u32 <: (), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
360+
judgment `prove_wc { goal: u32 <: (), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
361+
the rule "subtype" failed at step #0 (src/file.rs:LL:CC) because
362+
judgment `prove_sub { a: u32, b: (), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
363+
the rule "normalize-l" failed at step #0 (src/file.rs:LL:CC) because
364+
judgment had no applicable rules: `prove_normalize { p: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`
365+
the rule "normalize-r" failed at step #0 (src/file.rs:LL:CC) because
366+
judgment had no applicable rules: `prove_normalize { p: (), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
361367
)
362368
}
363369

@@ -386,7 +392,13 @@ fn test_invalid_assign_constant() {
386392
failed at (src/file.rs:LL:CC) because
387393
judgment `prove_wc_list { goal: {u32 <: usize}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
388394
the rule "some" failed at step #0 (src/file.rs:LL:CC) because
389-
judgment had no applicable rules: `prove_wc { goal: u32 <: usize, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
395+
judgment `prove_wc { goal: u32 <: usize, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
396+
the rule "subtype" failed at step #0 (src/file.rs:LL:CC) because
397+
judgment `prove_sub { a: u32, b: usize, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
398+
the rule "normalize-l" failed at step #0 (src/file.rs:LL:CC) because
399+
judgment had no applicable rules: `prove_normalize { p: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`
400+
the rule "normalize-r" failed at step #0 (src/file.rs:LL:CC) because
401+
judgment had no applicable rules: `prove_normalize { p: usize, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
390402
)
391403
}
392404

@@ -553,7 +565,13 @@ fn test_pass_non_subtype_arg() {
553565
failed at (src/file.rs:LL:CC) because
554566
judgment `prove_wc_list { goal: {() <: u32}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
555567
the rule "some" failed at step #0 (src/file.rs:LL:CC) because
556-
judgment had no applicable rules: `prove_wc { goal: () <: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
568+
judgment `prove_wc { goal: () <: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
569+
the rule "subtype" failed at step #0 (src/file.rs:LL:CC) because
570+
judgment `prove_sub { a: (), b: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
571+
the rule "normalize-l" failed at step #0 (src/file.rs:LL:CC) because
572+
judgment had no applicable rules: `prove_normalize { p: (), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`
573+
the rule "normalize-r" failed at step #0 (src/file.rs:LL:CC) because
574+
judgment had no applicable rules: `prove_normalize { p: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
557575
)
558576
}
559577

@@ -630,7 +648,13 @@ fn test_incompatible_return_type() {
630648
failed at (src/file.rs:LL:CC) because
631649
judgment `prove_wc_list { goal: {() <: u32}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
632650
the rule "some" failed at step #0 (src/file.rs:LL:CC) because
633-
judgment had no applicable rules: `prove_wc { goal: () <: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
651+
judgment `prove_wc { goal: () <: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
652+
the rule "subtype" failed at step #0 (src/file.rs:LL:CC) because
653+
judgment `prove_sub { a: (), b: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
654+
the rule "normalize-l" failed at step #0 (src/file.rs:LL:CC) because
655+
judgment had no applicable rules: `prove_normalize { p: (), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`
656+
the rule "normalize-r" failed at step #0 (src/file.rs:LL:CC) because
657+
judgment had no applicable rules: `prove_normalize { p: u32, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }`"#]]
634658
)
635659
}
636660

0 commit comments

Comments
 (0)