File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ //@ compile-flags: -Zincremental-verify-ich=yes
2+ // issue: rust-lang/rust#83085 incremental ICE: forcing query with already existing `DepNode`
3+ // this used to fail to build straight away without needing any kind of
4+ // stage1/2 builds but tidy demands it
5+ //@ revisions:rpass1 rpass2
6+
7+ fn main ( ) {
8+ const BOO : & [ u8 ; 0 ] = & [ ] ;
9+ match & [ ] {
10+ BOO => ( ) ,
11+ b"" => ( ) ,
12+ _ => ( ) ,
13+ }
14+ }
15+
16+ #[ derive( PartialEq , Eq ) ]
17+ struct Id < ' a > {
18+ ns : & ' a str ,
19+ }
20+ fn visit_struct ( ) {
21+ let id = Id { ns : "random1" } ;
22+ const FLAG : Id < ' static > = Id {
23+ ns : "needs_to_be_the_same" ,
24+ } ;
25+ match id {
26+ FLAG => { }
27+ _ => { }
28+ }
29+ }
30+ fn visit_struct2 ( ) {
31+ let id = Id { ns : "random2" } ;
32+ const FLAG : Id < ' static > = Id {
33+ ns : "needs_to_be_the_same" ,
34+ } ;
35+ match id {
36+ FLAG => { }
37+ _ => { }
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments