File tree 12 files changed +11
-21
lines changed
src/test/ui/const-generics
12 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 1
- <<<<<<< HEAD
2
- //~^ WARN the feature `const_generics` is incomplete
3
- #![ feature ( lazy_normalization_consts ) ]
4
- //~^ WARN the feature `lazy_normalization_consts` is incomplete
5
- =======
6
1
#![ feature( const_generics) ]
7
- //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
8
- >>>>>>> merge lazy_normalization_consts into const_generics
2
+ //~^ WARN the feature `const_generics` is incomplete
9
3
10
4
#[ allow( dead_code) ]
11
5
struct ArithArrayLen < const N : usize > ( [ u32 ; 0 + N ] ) ;
Original file line number Diff line number Diff line change 1
- #![ feature( lazy_normalization_consts) ]
2
- //~^ WARN the feature `lazy_normalization_consts` is incomplete
3
1
#![ feature( const_generics) ]
4
2
//~^ WARN the feature `const_generics` is incomplete
5
3
Original file line number Diff line number Diff line change 1
- warning: the feature `const_generics` is incomplete and may cause the compiler to crash
1
+ warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2
2
--> $DIR/issue-61336-1.rs:1:12
3
3
|
4
4
LL | #![feature(const_generics)]
5
5
| ^^^^^^^^^^^^^^
6
6
|
7
7
= note: `#[warn(incomplete_features)]` on by default
8
+ = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
8
9
9
10
warning: 1 warning emitted
10
11
Original file line number Diff line number Diff line change 1
- #![ feature( lazy_normalization_consts) ]
2
- //~^ WARN the feature `lazy_normalization_consts` is incomplete
3
1
#![ feature( const_generics) ]
4
2
//~^ WARN the feature `const_generics` is incomplete
5
3
Original file line number Diff line number Diff line change 1
1
#![ feature( const_generics) ]
2
2
//~^ WARN the feature `const_generics` is incomplete
3
- #![ feature( lazy_normalization_consts) ]
4
- //~^ WARN the feature `lazy_normalization_consts` is incomplete
5
3
6
4
fn f < T : Copy , const N : usize > ( x : T ) -> [ T ; N ] {
7
5
[ x; N ]
Original file line number Diff line number Diff line change 2
2
3
3
#![ feature( const_generics) ]
4
4
//~^ WARN the feature `const_generics` is incomplete
5
- #![ feature( lazy_normalization_consts) ]
6
- //~^ WARN the feature `lazy_normalization_consts` is incomplete
7
5
8
6
struct Const < const N : usize > ;
9
7
Original file line number Diff line number Diff line change 1
1
// check-pass
2
2
3
3
#![ feature( const_generics) ]
4
- //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4
+ //~^ WARN the feature `const_generics` is incomplete
5
5
6
6
trait Foo { }
7
7
Original file line number Diff line number Diff line change 1
1
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2
+ --> $DIR/issue-61935.rs:3:12
2
3
|
3
4
LL | #![feature(const_generics)]
4
5
| ^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 1
1
// check-pass
2
2
3
3
#![ feature( const_generics) ]
4
- //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4
+ //~^ WARN the feature `const_generics` is incomplete
5
5
6
6
trait Baz {
7
7
type Quaks ;
Original file line number Diff line number Diff line change 1
- warning: the feature `const_generics` is incomplete and may cause the compiler to crash
1
+ warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2
2
--> $DIR/issue-67185-1.rs:3:12
3
3
|
4
4
LL | #![feature(const_generics)]
5
5
| ^^^^^^^^^^^^^^
6
6
|
7
7
= note: `#[warn(incomplete_features)]` on by default
8
+ = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
8
9
9
10
warning: 1 warning emitted
10
11
Original file line number Diff line number Diff line change 1
1
#![ feature( const_generics) ]
2
- //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
2
+ //~^ WARN the feature `const_generics` is incomplete
3
3
4
4
trait Baz {
5
5
type Quaks ;
Original file line number Diff line number Diff line change 1
- warning: the feature `const_generics` is incomplete and may cause the compiler to crash
1
+ warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2
2
--> $DIR/issue-67185-2.rs:1:12
3
3
|
4
4
LL | #![feature(const_generics)]
5
5
| ^^^^^^^^^^^^^^
6
6
|
7
7
= note: `#[warn(incomplete_features)]` on by default
8
+ = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
8
9
9
10
error[E0277]: the trait bound `[u16; 3]: Bar` is not satisfied
10
11
--> $DIR/issue-67185-2.rs:15:1
You can’t perform that action at this time.
0 commit comments