You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)]structFoo<'a,T>{x:&'a T}fnmain(){}
New dep-node
To make a new dep-node, you want to copy and paste this variant here:
create separate dep-nodes for predicates_of and explicit_predicates_of
Fix for #51409
- added incremental compilation test for infer_outlives_requirements
- created separate dep-node for explicit_predicates_of
Both the
explicit_predicates_of
andpredicates_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:ExplicitPredicatesOfItem
for this query.Test
If we add a test in
src/test/incremental
sort of like this, it ought to fail: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
The text was updated successfully, but these errors were encountered: