We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef8e64 commit 3ab4e67Copy full SHA for 3ab4e67
tests/incremental/rpitit-feeding.rs
@@ -0,0 +1,27 @@
1
+//@ revisions: cpass cpass2 cpass3
2
+
3
+// This test checks that creating a new `DefId` from within a query `A`
4
+// recreates that `DefId` before reexecuting queries that depend on query `A`.
5
+// Otherwise we'd end up referring to a `DefId` that doesn't exist.
6
+// At present this is handled by always marking all queries as red if they create
7
+// a new `DefId` and thus subsequently rerunning the query.
8
9
+trait Foo {
10
+ fn foo() -> impl Sized;
11
+}
12
13
+#[cfg(any(cpass, cpass3))]
14
+impl Foo for String {
15
+ fn foo() -> i32 {
16
+ 22
17
+ }
18
19
20
+#[cfg(cpass2)]
21
22
+ fn foo() -> u32 {
23
24
25
26
27
+fn main() {}
0 commit comments