File tree Expand file tree Collapse file tree 4 files changed +57
-0
lines changed Expand file tree Collapse file tree 4 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ // This is part of series of regression tests for some diagnostics ICEs encountered in the wild with
2+ // suggestions having overlapping parts under https://github.com/rust-lang/rust/pull/146121.
3+
4+ //@ needs-rustc-debug-assertions
5+ //@ known-bug: #146261
6+
7+ enum U {
8+ B ( ) ,
9+ }
10+
11+ fn main ( ) {
12+ A ( U :: C )
13+ }
Original file line number Diff line number Diff line change 1+ // This is part of series of regression tests for some diagnostics ICEs encountered in the wild with
2+ // suggestions having overlapping parts under https://github.com/rust-lang/rust/pull/146121.
3+
4+ //@ needs-rustc-debug-assertions
5+ //@ known-bug: #146706
6+
7+ type Alias < ' a , T > = Foo < T > ;
8+
9+ enum Foo < T > {
10+ Bar { t : T } ,
11+ }
12+
13+ fn main ( ) {
14+ Alias :: Bar :: < u32 > { t : 0 } ;
15+ }
Original file line number Diff line number Diff line change 1+ // This is part of series of regression tests for some diagnostics ICEs encountered in the wild with
2+ // suggestions having overlapping parts under https://github.com/rust-lang/rust/pull/146121.
3+ // This is one MCVE from the beta crater run regressions from issue 147973.
4+
5+ //@ needs-rustc-debug-assertions
6+ //@ known-bug: #147973
7+
8+ //@ aux-build: overlapping_spans_helper.rs
9+ extern crate overlapping_spans_helper;
10+
11+ fn main ( ) {
12+ let _name = Some ( 1 ) ;
13+ overlapping_spans_helper:: do_loop!( _name) ;
14+ }
Original file line number Diff line number Diff line change 1+ // Auxiliary lib for the issue 147973 regression test with ICEs due to overlapping spans.
2+
3+ #[ macro_export]
4+ macro_rules! identity {
5+ ( $x: ident) => {
6+ $x
7+ } ;
8+ }
9+
10+ #[ macro_export]
11+ macro_rules! do_loop {
12+ ( $x: ident) => {
13+ for $crate:: identity!( $x) in $x { }
14+ } ;
15+ }
You can’t perform that action at this time.
0 commit comments