]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/span_hash_stable/main.rs
Auto merge of #2698 - RalfJung:miri-in-rustc, r=oli-obk
[rust.git] / src / test / incremental / span_hash_stable / main.rs
1 // This test makes sure that it doesn't make a difference in which order we are
2 // adding source files to the source_map. The order affects the BytePos values of
3 // the spans and this test makes sure that we handle them correctly by hashing
4 // file:line:column instead of raw byte offset.
5
6 // ignore-asmjs wasm2js does not support source maps yet
7 // revisions:rpass1 rpass2
8 // compile-flags: -g -Z query-dep-graph
9
10 #![feature(rustc_attrs)]
11
12 mod auxiliary;
13
14 fn main() {
15     let _ = auxiliary::sub1::SomeType {
16         x: 0,
17         y: 1,
18     };
19
20     let _ = auxiliary::sub2::SomeOtherType {
21         a: 2,
22         b: 3,
23     };
24 }