]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/commandline-args.rs
Auto merge of #74060 - kpp:remove_length_at_most_32, r=dtolnay
[rust.git] / src / test / incremental / commandline-args.rs
1 // Test that changing a tracked commandline argument invalidates
2 // the cache while changing an untracked one doesn't.
3
4 // ignore-asmjs wasm2js does not support source maps yet
5 // revisions:rpass1 rpass2 rpass3
6 // compile-flags: -Z query-dep-graph
7
8 #![feature(rustc_attrs)]
9
10 #![rustc_partition_codegened(module="commandline_args", cfg="rpass2")]
11 #![rustc_partition_reused(module="commandline_args", cfg="rpass3")]
12
13 // Between revisions 1 and 2, we are changing the debuginfo-level, which should
14 // invalidate the cache. Between revisions 2 and 3, we are adding `--verbose`
15 // which should have no effect on the cache:
16 //[rpass1] compile-flags: -C debuginfo=0
17 //[rpass2] compile-flags: -C debuginfo=2
18 //[rpass3] compile-flags: -C debuginfo=2 --verbose
19
20 pub fn main() {
21     // empty
22 }