]>
git.proxmox.com Git - rustc.git/blob - tests/incremental/spike.rs
1 // A first "spike" for incremental compilation: here, we change the
2 // content of the `make` function, and we find that we can reuse the
3 // `y` module entirely (but not the `x` module).
5 // revisions:rpass1 rpass2
6 // compile-flags: -Z query-dep-graph
8 #![feature(rustc_attrs)]
10 #![rustc_partition_reused(module="spike", cfg="rpass2")]
11 #![rustc_partition_codegened(module="spike-x", cfg="rpass2")]
12 #![rustc_partition_reused(module="spike-y", cfg="rpass2")]
33 pub fn sum(x
: &X
) -> u32 {
41 pub fn assert_sum() -> bool
{