Skip to content

Commit 991dfe7

Browse files
committed
bless all
1 parent 5fbef22 commit 991dfe7

File tree

54 files changed

+151
-76
lines changed

Some content is hidden

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

54 files changed

+151
-76
lines changed

src/test/compile-fail/specialization/issue-50452.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// compile-fail
2-
32
#![feature(specialization)]
3+
//~^ WARN the feature `specialization` is incomplete
44

55
pub trait Foo {
66
fn foo();

src/test/ui/associated-types/defaults-specialization.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: the feature `specialization` is incomplete and may be unsafe to use and/or cause compiler crashes
1+
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
22
--> $DIR/defaults-specialization.rs:3:38
33
|
44
LL | #![feature(associated_type_defaults, specialization)]

src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//
55
// No we expect to run into a more user-friendly cycle error instead.
66
#![feature(specialization)]
7+
//~^ WARN the feature `specialization` is incomplete
78

89
trait Trait<T> { type Assoc; }
910
//~^ ERROR E0391
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1+
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:6:12
3+
|
4+
LL | #![feature(specialization)]
5+
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
110
error[E0391]: cycle detected when building specialization graph of trait `Trait`
2-
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:8:1
11+
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
312
|
413
LL | trait Trait<T> { type Assoc; }
514
| ^^^^^^^^^^^^^^
615
|
716
= note: ...which again requires building specialization graph of trait `Trait`, completing the cycle
817
note: cycle used when coherence checking all impls of trait `Trait`
9-
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:8:1
18+
--> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
1019
|
1120
LL | trait Trait<T> { type Assoc; }
1221
| ^^^^^^^^^^^^^^
1322

14-
error: aborting due to previous error
23+
error: aborting due to previous error; 1 warning emitted
1524

1625
For more information about this error, try `rustc --explain E0391`.

src/test/ui/error-codes/E0520.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(specialization)]
2+
//~^ WARN the feature `specialization` is incomplete
23

34
trait SpaceLlama {
45
fn fly(&self);

src/test/ui/error-codes/E0520.stderr

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/E0520.rs:1:12
3+
|
4+
LL | #![feature(specialization)]
5+
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
110
error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
2-
--> $DIR/E0520.rs:16:5
11+
--> $DIR/E0520.rs:17:5
312
|
413
LL | / impl<T: Clone> SpaceLlama for T {
514
LL | | fn fly(&self) {}
@@ -11,6 +20,6 @@ LL | default fn fly(&self) {}
1120
|
1221
= note: to specialize, `fly` in the parent `impl` must be marked `default`
1322

14-
error: aborting due to previous error
23+
error: aborting due to previous error; 1 warning emitted
1524

1625
For more information about this error, try `rustc --explain E0520`.

src/test/ui/issues/issue-35376.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// check-pass
22
#![feature(specialization)]
3+
//~^ WARN the feature `specialization` is incomplete
34

45
fn main() {}
56

src/test/ui/issues/issue-35376.stderr

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/issue-35376.rs:2:12
3+
|
4+
LL | #![feature(specialization)]
5+
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
10+
warning: 1 warning emitted
11+

src/test/ui/issues/issue-38091.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// run-pass
22
#![feature(specialization)]
3+
//~^ WARN the feature `specialization` is incomplete
34

45
trait Iterate<'a> {
56
type Ty: Valid;

src/test/ui/issues/issue-38091.stderr

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/issue-38091.rs:2:12
3+
|
4+
LL | #![feature(specialization)]
5+
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
8+
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9+
10+
warning: 1 warning emitted
11+

0 commit comments

Comments
 (0)