Uh oh!
There was an error while loading. Please reload this page.
A more verbose matching failure for mir tests - #38289
Merged
Merged
Conversation
This makes it easier to work with mir test failures during development. - Show which expected line was not found - Show full expected output - Show full actual output
rust-highfive
commented
Dec 10, 2016
Contributor
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
bluss
commented
Dec 10, 2016
ContributorAuthor
Example output below. It's long, but it's useful when developing. failures: ---- [mir-opt] mir-opt/deaggregator_test.rs stdout ----
thread '[mir-opt] mir-opt/deaggregator_test.rs' panicked at 'ran out of mir dump output to match against.Did not find expected line:" _0 = Baz { x: _3, y: const F32(0), z: const false };"Expected: bb0:{
_2 = _1;
_3 = _2;
_0 = Baz{x: _3,y:constF32(0),z:constfalse};return;}Actual:fnbar(_1:usize) -> Baz{letmut _0:Baz;
scope 1{let _2: usize;}letmut _3:usize;bb0:{StorageLive(_2);
_2 = _1;StorageLive(_3);
_3 = _2;(_0.0: usize) = _3;(_0.1:f32) = constF32(0);(_0.2: bool) = constfalse;StorageDead(_3);StorageDead(_2);return;}}', src/tools/compiletest/src/runtest.rs:2302
note:Run with `RUST_BACKTRACE=1` for a backtrace. |
michaelwoerister
commented
Dec 19, 2016
Member
@bors r+ |
bors
commented
Dec 19, 2016
Collaborator
📌 Commit 90c5b71 has been approved by |
alexcrichton added a commit
to alexcrichton/rust
that referenced
this pull request
Dec 20, 2016
…aelwoerister A more verbose matching failure for mir tests This makes it easier to work with mir test failures during development. - Show which expected line was not found - Show full expected output - Show full actual output
bors added a commit
that referenced
this pull request
Dec 20, 2016
Rollup of 29 pull requests - Successful merges: #37761, #38006, #38131, #38150, #38158, #38171, #38208, #38215, #38236, #38245, #38289, #38302, #38315, #38346, #38388, #38395, #38398, #38418, #38432, #38451, #38463, #38468, #38470, #38471, #38472, #38478, #38486, #38493, #38498 - Failed merges: #38271, #38483
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes it easier to work with mir test failures during development.