From a7f29eed0f279c6d5864aa6b3f905bf2a2bf35a7 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 27 Sep 2023 11:17:49 +0000 Subject: [PATCH] Make regression test actually excercise rerunning only some queries --- tests/incremental/rpitit-feeding.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/incremental/rpitit-feeding.rs b/tests/incremental/rpitit-feeding.rs index 7d2e8d7f2bbb..e62f377d5c1a 100644 --- a/tests/incremental/rpitit-feeding.rs +++ b/tests/incremental/rpitit-feeding.rs @@ -1,4 +1,4 @@ -// revisions: cpass cpass2 +// revisions: cpass cpass2 cpass3 // This test checks that creating a new `DefId` from within a query `A` // recreates that `DefId` before reexecuting queries that depend on query `A`. @@ -13,10 +13,18 @@ trait Foo { fn foo() -> impl Sized; } +#[cfg(any(cpass, cpass3))] impl Foo for String { fn foo() -> i32 { 22 } } +#[cfg(cpass2)] +impl Foo for String { + fn foo() -> u32 { + 22 + } +} + fn main() {}