-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unsized_locals to INCOMPLETE_FEATURES list
- Loading branch information
1 parent
4bfd62a
commit 5d3b331
Showing
27 changed files
with
143 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// run-pass | ||
|
||
#![allow(incomplete_features)] | ||
#![feature(unsized_locals)] | ||
#![allow(dead_code)] | ||
#[repr(align(256))] | ||
|
1 change: 1 addition & 0 deletions
1
src/test/ui/methods/method-deref-to-same-trait-object-with-separate-params.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,59 @@ | ||
warning: the feature `unsized_locals` is incomplete and may cause the compiler to crash | ||
--> $DIR/move-out-of-slice-2.rs:1:12 | ||
| | ||
LL | #![feature(unsized_locals)] | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
error[E0508]: cannot move out of type `[A]`, a non-copy slice | ||
--> $DIR/move-out-of-slice-2.rs:9:11 | ||
--> $DIR/move-out-of-slice-2.rs:10:11 | ||
| | ||
LL | match *a { | ||
| ^^ cannot move out of here | ||
LL | | ||
LL | [a @ ..] => {}, | ||
LL | [a @ ..] => {} | ||
| ------ | ||
| | | ||
| data moved here | ||
| move occurs because `a` has type `[A]`, which does not implement the `Copy` trait | ||
|
||
error[E0508]: cannot move out of type `[A]`, a non-copy slice | ||
--> $DIR/move-out-of-slice-2.rs:15:11 | ||
--> $DIR/move-out-of-slice-2.rs:16:11 | ||
| | ||
LL | match *b { | ||
| ^^ cannot move out of here | ||
LL | | ||
LL | [_, _, b @ .., _] => {}, | ||
LL | [_, _, b @ .., _] => {} | ||
| ------ | ||
| | | ||
| data moved here | ||
| move occurs because `b` has type `[A]`, which does not implement the `Copy` trait | ||
|
||
error[E0508]: cannot move out of type `[C]`, a non-copy slice | ||
--> $DIR/move-out-of-slice-2.rs:23:11 | ||
--> $DIR/move-out-of-slice-2.rs:24:11 | ||
| | ||
LL | match *c { | ||
| ^^ cannot move out of here | ||
LL | | ||
LL | [c @ ..] => {}, | ||
LL | [c @ ..] => {} | ||
| ------ | ||
| | | ||
| data moved here | ||
| move occurs because `c` has type `[C]`, which does not implement the `Copy` trait | ||
|
||
error[E0508]: cannot move out of type `[C]`, a non-copy slice | ||
--> $DIR/move-out-of-slice-2.rs:29:11 | ||
--> $DIR/move-out-of-slice-2.rs:30:11 | ||
| | ||
LL | match *d { | ||
| ^^ cannot move out of here | ||
LL | | ||
LL | [_, _, d @ .., _] => {}, | ||
LL | [_, _, d @ .., _] => {} | ||
| ------ | ||
| | | ||
| data moved here | ||
| move occurs because `d` has type `[C]`, which does not implement the `Copy` trait | ||
|
||
error: aborting due to 4 previous errors | ||
error: aborting due to 4 previous errors; 1 warning emitted | ||
|
||
For more information about this error, try `rustc --explain E0508`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 12 additions & 4 deletions
16
src/test/ui/unsized-locals/by-value-trait-object-safety.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
warning: the feature `unsized_locals` is incomplete and may cause the compiler to crash | ||
--> $DIR/by-value-trait-object-safety.rs:1:12 | ||
| | ||
LL | #![feature(unsized_locals)] | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
error: the `foo` method cannot be invoked on a trait object | ||
--> $DIR/by-value-trait-object-safety.rs:18:7 | ||
--> $DIR/by-value-trait-object-safety.rs:20:7 | ||
| | ||
LL | fn foo(self) -> String where Self: Sized; | ||
| ----- this has a `Sized` requirement | ||
LL | Self: Sized; | ||
| ----- this has a `Sized` requirement | ||
... | ||
LL | x.foo(); | ||
| ^^^ | ||
|
||
error: aborting due to previous error | ||
error: aborting due to previous error; 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.