From daf8903e8ed1f4704077e02479f841b84ebc82d3 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 2 Oct 2021 21:14:52 +0200 Subject: Do not re-hash foreign spans. --- src/test/incremental/mir-opt.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/test/incremental/mir-opt.rs (limited to 'src/test') 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"); + } +} -- cgit 1.4.1-3-g733a5