Rollup merge of #68289 - pnkfelix:issue-62649-dont-ice-on-path-collision-in-dep-graph, r=michaelwoerister

Don't ICE on path-collision in dep-graph

Collisions in the dep-graph due to path-reuse are rare but can occur.

So, instead of ICE'ing, just fail to mark green in such cases (for `DepKind::{Hir, HirBody, CrateMetadata}`).

Fix #62649.
This commit is contained in:
Yuki Okushi 2020-01-29 09:34:43 +09:00 committed by GitHub
commit cb3884adaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 9 deletions

View file

@ -0,0 +1,13 @@
// revisions: rpass1 rpass2
#[cfg(rpass1)]
pub trait Something {
fn foo();
}
#[cfg(rpass2)]
pub struct Something {
pub foo: u8,
}
fn main() {}