Skip to content

Commit 53c0bab

Browse files
committed
update tests
1 parent 74b2918 commit 53c0bab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+277
-455
lines changed

src/test/ui/associated-consts/defaults-cyclic-fail.stderr

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ note: ...which requires simplifying constant for the type system `Tr::A`...
55
|
66
LL | const A: u8 = Self::B;
77
| ^^^^^^^^^^^^^^^^^^^^^^
8-
note: ...which requires simplifying constant for the type system `Tr::A`...
9-
--> $DIR/defaults-cyclic-fail.rs:6:5
10-
|
11-
LL | const A: u8 = Self::B;
12-
| ^^^^^^^^^^^^^^^^^^^^^^
13-
note: ...which requires simplifying constant for the type system `Tr::A`...
14-
--> $DIR/defaults-cyclic-fail.rs:6:5
15-
|
16-
LL | const A: u8 = Self::B;
17-
| ^^^^^^^^^^^^^^^^^^^^^^
188
note: ...which requires const-evaluating + checking `Tr::A`...
199
--> $DIR/defaults-cyclic-fail.rs:6:5
2010
|
@@ -26,16 +16,6 @@ note: ...which requires simplifying constant for the type system `Tr::B`...
2616
|
2717
LL | const B: u8 = Self::A;
2818
| ^^^^^^^^^^^^^^^^^^^^^^
29-
note: ...which requires simplifying constant for the type system `Tr::B`...
30-
--> $DIR/defaults-cyclic-fail.rs:8:5
31-
|
32-
LL | const B: u8 = Self::A;
33-
| ^^^^^^^^^^^^^^^^^^^^^^
34-
note: ...which requires simplifying constant for the type system `Tr::B`...
35-
--> $DIR/defaults-cyclic-fail.rs:8:5
36-
|
37-
LL | const B: u8 = Self::A;
38-
| ^^^^^^^^^^^^^^^^^^^^^^
3919
note: ...which requires const-evaluating + checking `Tr::B`...
4020
--> $DIR/defaults-cyclic-fail.rs:8:5
4121
|

src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ error[E0391]: cycle detected when simplifying constant for the type system `IMPL
44
LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
note: ...which requires simplifying constant for the type system `IMPL_REF_BAR`...
8-
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
9-
|
10-
LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
note: ...which requires simplifying constant for the type system `IMPL_REF_BAR`...
13-
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
14-
|
15-
LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
177
note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
188
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
199
|
@@ -25,16 +15,6 @@ note: ...which requires simplifying constant for the type system `<impl at $DIR/
2515
|
2616
LL | const BAR: u32 = IMPL_REF_BAR;
2717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28-
note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
29-
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
30-
|
31-
LL | const BAR: u32 = IMPL_REF_BAR;
32-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33-
note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
34-
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
35-
|
36-
LL | const BAR: u32 = IMPL_REF_BAR;
37-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3818
note: ...which requires const-evaluating + checking `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
3919
--> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
4020
|

src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.stderr

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ error[E0391]: cycle detected when simplifying constant for the type system `DEFA
44
LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
note: ...which requires simplifying constant for the type system `DEFAULT_REF_BAR`...
8-
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1
9-
|
10-
LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR;
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
note: ...which requires simplifying constant for the type system `DEFAULT_REF_BAR`...
13-
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1
14-
|
15-
LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR;
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
177
note: ...which requires const-evaluating + checking `DEFAULT_REF_BAR`...
188
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1
199
|
@@ -25,16 +15,6 @@ note: ...which requires simplifying constant for the type system `FooDefault::BA
2515
|
2616
LL | const BAR: u32 = DEFAULT_REF_BAR;
2717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28-
note: ...which requires simplifying constant for the type system `FooDefault::BAR`...
29-
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:5
30-
|
31-
LL | const BAR: u32 = DEFAULT_REF_BAR;
32-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33-
note: ...which requires simplifying constant for the type system `FooDefault::BAR`...
34-
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:5
35-
|
36-
LL | const BAR: u32 = DEFAULT_REF_BAR;
37-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3818
note: ...which requires const-evaluating + checking `FooDefault::BAR`...
3919
--> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:5
4020
|

src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.stderr

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ error[E0391]: cycle detected when simplifying constant for the type system `TRAI
44
LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
note: ...which requires simplifying constant for the type system `TRAIT_REF_BAR`...
8-
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
9-
|
10-
LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR;
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
note: ...which requires simplifying constant for the type system `TRAIT_REF_BAR`...
13-
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
14-
|
15-
LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR;
16-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
177
note: ...which requires const-evaluating + checking `TRAIT_REF_BAR`...
188
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
199
|
@@ -25,16 +15,6 @@ note: ...which requires simplifying constant for the type system `<impl at $DIR/
2515
|
2616
LL | const BAR: u32 = TRAIT_REF_BAR;
2717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28-
note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
29-
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
30-
|
31-
LL | const BAR: u32 = TRAIT_REF_BAR;
32-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33-
note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
34-
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
35-
|
36-
LL | const BAR: u32 = TRAIT_REF_BAR;
37-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3818
note: ...which requires const-evaluating + checking `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
3919
--> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
4020
|

src/test/ui/const-generics/const_evaluatable_checked/from-sig-fail.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/test/ui/const-generics/const_evaluatable_checked/from-sig-fail.stderr

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/test/ui/const-generics/const_evaluatable_checked/simple_fail.full.stderr

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/test/ui/const-generics/const_evaluatable_checked/simple_fail.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
struct Foo<const N: u8 = { 255 + 1 }>;
22
//~^ ERROR evaluation of constant value failed
3+
//~| ERROR failed to evaluate
34
fn main() {}

src/test/ui/const-generics/defaults/default-param-wf-concrete.stderr

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ error[E0080]: evaluation of constant value failed
44
LL | struct Foo<const N: u8 = { 255 + 1 }>;
55
| ^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
66

7-
error: aborting due to previous error
7+
error: failed to evaluate the given constant
8+
--> $DIR/default-param-wf-concrete.rs:1:18
9+
|
10+
LL | struct Foo<const N: u8 = { 255 + 1 }>;
11+
| ^
12+
13+
error: aborting due to 2 previous errors
814

915
For more information about this error, try `rustc --explain E0080`.

0 commit comments

Comments
 (0)