Closed
Description
Both the explicit_predicates_of
and predicates_of
queries have the same dep-node:
rust/src/librustc/ty/maps/mod.rs
Lines 104 to 105 in c131bdc
This causes failures when the infer_outlives_requirements
feature is used with incremental compilation. What needs to be done to fix this is the following:
- First, create a test.
- Second, create a new dep-node
ExplicitPredicatesOfItem
for this query.
Test
If we add a test in src/test/incremental
sort of like this, it ought to fail:
// revisions: one
// Regression test that `infer_outlives_predicates` can be used with
// incremental without an ICE.
#![feature(infer_outlives_requirements)]
struct Foo<'a, T> {
x: &'a T
}
fn main() { }
New dep-node
To make a new dep-node, you want to copy and paste this variant here:
rust/src/librustc/dep_graph/dep_node.rs
Line 502 in c131bdc
The compiler should then lead you on a little tour of what else needs to be modified.
cc @toidiu
Metadata
Metadata
Assignees
Labels
No labels