diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-02 21:14:52 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-06 19:10:07 +0200 |
| commit | daf8903e8ed1f4704077e02479f841b84ebc82d3 (patch) | |
| tree | 6384a71ac1887533d317b460e28f087609afe049 /src/test/incremental | |
| parent | ce21756ed3acdd6bb4c222725214c24e1bc70915 (diff) | |
| download | rust-daf8903e8ed1f4704077e02479f841b84ebc82d3.tar.gz rust-daf8903e8ed1f4704077e02479f841b84ebc82d3.zip | |
Do not re-hash foreign spans.
Diffstat (limited to 'src/test/incremental')
| -rw-r--r-- | src/test/incremental/mir-opt.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/incremental/mir-opt.rs b/src/test/incremental/mir-opt.rs new file mode 100644 index 00000000000..5bd863439df --- /dev/null +++ b/src/test/incremental/mir-opt.rs @@ -0,0 +1,11 @@ +// MIR optimizations can create expansions after the TyCtxt has been created. +// This test verifies that those expansions can be decoded correctly. + +// revisions:rpass1 rpass2 +// compile-flags: -Z query-dep-graph -Z mir-opt-level=3 + +fn main() { + if std::env::var("a").is_ok() { + println!("b"); + } +} |
