]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/commandline-args.rs
Rollup merge of #62310 - GuillaumeGomez:add-missing-doc-links-boxed, r=Centril
[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 // revisions:rpass1 rpass2 rpass3
5 // compile-flags: -Z query-dep-graph
6
7 #![feature(rustc_attrs)]
8
9 #![rustc_partition_codegened(module="commandline_args", cfg="rpass2")]
10 #![rustc_partition_reused(module="commandline_args", cfg="rpass3")]
11
12 // Between revisions 1 and 2, we are changing the debuginfo-level, which should
13 // invalidate the cache. Between revisions 2 and 3, we are adding `--verbose`
14 // which should have no effect on the cache:
15 //[rpass1] compile-flags: -C debuginfo=0
16 //[rpass2] compile-flags: -C debuginfo=2
17 //[rpass3] compile-flags: -C debuginfo=2 --verbose
18
19 pub fn main() {
20     // empty
21 }