Skip to content

Commit

Permalink
Make regression test actually excercise rerunning only some queries
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 14, 2024
1 parent d7e0038 commit a7f29ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/incremental/rpitit-feeding.rs
Original file line number Diff line number Diff line change
@@ -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`.
Expand All @@ -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() {}

0 comments on commit a7f29ee

Please sign in to comment.