-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #64763 - GuillaumeGomez:long-err-explanation-E0734, r…
…=estebank Add E0734 and its long explanation Part of #61137
- Loading branch information
Showing
9 changed files
with
59 additions
and
32 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
15 changes: 8 additions & 7 deletions
15
src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.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,44 +1,45 @@ | ||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:7:1 | ||
| | ||
LL | #![rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:10:1 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:13:17 | ||
| | ||
LL | mod inner { #![rustc_deprecated()] } | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:16:5 | ||
| | ||
LL | #[rustc_deprecated()] fn f() { } | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:19:5 | ||
| | ||
LL | #[rustc_deprecated()] struct S; | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:22:5 | ||
| | ||
LL | #[rustc_deprecated()] type T = S; | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:25:5 | ||
| | ||
LL | #[rustc_deprecated()] impl S { } | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 7 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0734`. |
15 changes: 8 additions & 7 deletions
15
src/test/ui/feature-gate/issue-43106-gating-of-stable.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,44 +1,45 @@ | ||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-stable.rs:7:1 | ||
| | ||
LL | #![stable()] | ||
| ^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-stable.rs:10:1 | ||
| | ||
LL | #[stable()] | ||
| ^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-stable.rs:13:17 | ||
| | ||
LL | mod inner { #![stable()] } | ||
| ^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-stable.rs:16:5 | ||
| | ||
LL | #[stable()] fn f() { } | ||
| ^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-stable.rs:19:5 | ||
| | ||
LL | #[stable()] struct S; | ||
| ^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-stable.rs:22:5 | ||
| | ||
LL | #[stable()] type T = S; | ||
| ^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-stable.rs:25:5 | ||
| | ||
LL | #[stable()] impl S { } | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to 7 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0734`. |
15 changes: 8 additions & 7 deletions
15
src/test/ui/feature-gate/issue-43106-gating-of-unstable.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,44 +1,45 @@ | ||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-unstable.rs:7:1 | ||
| | ||
LL | #![unstable()] | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-unstable.rs:10:1 | ||
| | ||
LL | #[unstable()] | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-unstable.rs:13:17 | ||
| | ||
LL | mod inner { #![unstable()] } | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-unstable.rs:16:5 | ||
| | ||
LL | #[unstable()] fn f() { } | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-unstable.rs:19:5 | ||
| | ||
LL | #[unstable()] struct S; | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-unstable.rs:22:5 | ||
| | ||
LL | #[unstable()] type T = S; | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-unstable.rs:25:5 | ||
| | ||
LL | #[unstable()] impl S { } | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 7 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0734`. |
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,14 +1,15 @@ | ||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/feature-gate-staged_api.rs:1:1 | ||
| | ||
LL | #![stable(feature = "a", since = "b")] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/feature-gate-staged_api.rs:8:1 | ||
| | ||
LL | #[stable(feature = "a", since = "b")] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0734`. |
7 changes: 4 additions & 3 deletions
7
src/test/ui/stability-attribute/stability-attribute-non-staged-force-unstable.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,20 +1,21 @@ | ||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/stability-attribute-non-staged-force-unstable.rs:3:1 | ||
| | ||
LL | #[unstable()] | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/stability-attribute-non-staged-force-unstable.rs:4:1 | ||
| | ||
LL | #[stable()] | ||
| ^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/stability-attribute-non-staged-force-unstable.rs:5:1 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0734`. |
7 changes: 4 additions & 3 deletions
7
src/test/ui/stability-attribute/stability-attribute-non-staged.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,20 +1,21 @@ | ||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/stability-attribute-non-staged.rs:1:1 | ||
| | ||
LL | #[unstable()] | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/stability-attribute-non-staged.rs:2:1 | ||
| | ||
LL | #[stable()] | ||
| ^^^^^^^^^^^ | ||
|
||
error: stability attributes may not be used outside of the standard library | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/stability-attribute-non-staged.rs:3:1 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0734`. |
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