]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/cache_file_headers.rs
Rollup merge of #98998 - workingjubilee:naked-means-no-clothes-enforcement-technology...
[rust.git] / src / test / incremental / cache_file_headers.rs
1 // This test case makes sure that the compiler does not try to re-use anything
2 // from the incremental compilation cache if the cache was produced by a
3 // different compiler version. This is tested by artificially forcing the
4 // emission of a different compiler version in the header of rpass1 artifacts,
5 // and then making sure that the only object file of the test program gets
6 // re-codegened although the program stays unchanged.
7
8 // The `l33t haxx0r` Rust compiler is known to produce incr. comp. artifacts
9 // that are outrageously incompatible with just about anything, even itself:
10 //[rpass1] rustc-env:RUSTC_FORCE_RUSTC_VERSION="l33t haxx0r rustc 2.1 LTS"
11
12 // revisions:rpass1 rpass2
13 // compile-flags: -Z query-dep-graph
14
15 #![feature(rustc_attrs)]
16 #![rustc_partition_codegened(module="cache_file_headers", cfg="rpass2")]
17
18 fn main() {
19     // empty
20 }