Do not re-hash foreign spans.

This commit is contained in:
Camille GILLOT 2021-10-02 21:14:52 +02:00
parent ce21756ed3
commit daf8903e8e
2 changed files with 27 additions and 11 deletions

View file

@ -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");
}
}