]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #100827 - JakobDegen:better-tests, r=wesleywiser
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 2 Sep 2022 09:34:50 +0000 (11:34 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Sep 2022 09:34:50 +0000 (11:34 +0200)
commit203526e576935c75b5ca23a490ea53cee361079c
treef1b253415c04376dcd26bfb986e9af6f55253e2b
parentedf79cb86b5f1e4d2f242c631909a3a6c9eebfa0
parente5d60af3c6f44be48371e32ef553416d277c92ec
Rollup merge of #100827 - JakobDegen:better-tests, r=wesleywiser

Simplify MIR opt tests

This commit removes many cases of MIR opt tests emitting `.diff`s for more than one pass. These tests cannot be `unit-test`s, and so they are easy to break, and they also provide little value due to having excessively strong opinions over *how* a piece of code should be optimized.

Where reasonable, we instead add separate test files that only emit the `PreCodegen.after` MIR for code where we want to track what the end to end effect of the optimization pipeline on the example code is.

r? `````@wesleywiser`````