Skip to content

Commit a7f29ee

Browse files
committed
Make regression test actually excercise rerunning only some queries
1 parent d7e0038 commit a7f29ee

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: tests/incremental/rpitit-feeding.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// revisions: cpass cpass2
1+
// revisions: cpass cpass2 cpass3
22

33
// This test checks that creating a new `DefId` from within a query `A`
44
// recreates that `DefId` before reexecuting queries that depend on query `A`.
@@ -13,10 +13,18 @@ trait Foo {
1313
fn foo() -> impl Sized;
1414
}
1515

16+
#[cfg(any(cpass, cpass3))]
1617
impl Foo for String {
1718
fn foo() -> i32 {
1819
22
1920
}
2021
}
2122

23+
#[cfg(cpass2)]
24+
impl Foo for String {
25+
fn foo() -> u32 {
26+
22
27+
}
28+
}
29+
2230
fn main() {}

0 commit comments

Comments
 (0)