From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/incremental/spike.rs | 49 ------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/test/incremental/spike.rs (limited to 'src/test/incremental/spike.rs') diff --git a/src/test/incremental/spike.rs b/src/test/incremental/spike.rs deleted file mode 100644 index a6a05e7c3..000000000 --- a/src/test/incremental/spike.rs +++ /dev/null @@ -1,49 +0,0 @@ -// A first "spike" for incremental compilation: here, we change the -// content of the `make` function, and we find that we can reuse the -// `y` module entirely (but not the `x` module). - -// revisions:rpass1 rpass2 -// compile-flags: -Z query-dep-graph - -#![feature(rustc_attrs)] - -#![rustc_partition_reused(module="spike", cfg="rpass2")] -#![rustc_partition_codegened(module="spike-x", cfg="rpass2")] -#![rustc_partition_reused(module="spike-y", cfg="rpass2")] - -mod x { - pub struct X { - x: u32, y: u32, - } - - #[cfg(rpass1)] - fn make() -> X { - X { x: 22, y: 0 } - } - - #[cfg(rpass2)] - fn make() -> X { - X { x: 11, y: 11 } - } - - pub fn new() -> X { - make() - } - - pub fn sum(x: &X) -> u32 { - x.x + x.y - } -} - -mod y { - use x; - - pub fn assert_sum() -> bool { - let x = x::new(); - x::sum(&x) == 22 - } -} - -pub fn main() { - y::assert_sum(); -} -- cgit v1.2.3