Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gate stability attrs with other attributes.
- Loading branch information
Showing
14 changed files
with
209 additions
and
163 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
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,15 +1,15 @@ | ||
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[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[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: aborting due to 2 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
87 changes: 65 additions & 22 deletions
87
src/test/ui/feature-gates/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,51 +1,94 @@ | ||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:7:1 | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:16:9 | ||
| | ||
LL | #![rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | #![rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:10:1 | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:21:5 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:13:17 | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:26:5 | ||
| | ||
LL | mod inner { #![rustc_deprecated()] } | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:16:5 | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:32:5 | ||
| | ||
LL | #[rustc_deprecated()] fn f() { } | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:19:5 | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:37:5 | ||
| | ||
LL | #[rustc_deprecated()] struct S; | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:19:5 | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:11:1 | ||
| | ||
LL | #[rustc_deprecated()] struct S; | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0734]: stability attributes may not be used outside of the standard library | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:23:5 | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:7:1 | ||
| | ||
LL | #![rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:7:1 | ||
| | ||
LL | #![rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:11:1 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:16:9 | ||
| | ||
LL | #![rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:21:5 | ||
| | ||
LL | #[rustc_deprecated()] type T = S; | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0734]: stability attributes may not be used outside of the standard library | ||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:26:5 | ||
| | ||
LL | #[rustc_deprecated()] impl S { } | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:26:5 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:32:5 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0542]: missing 'since' | ||
--> $DIR/issue-43106-gating-of-rustc_deprecated.rs:37:5 | ||
| | ||
LL | #[rustc_deprecated()] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 8 previous errors | ||
error: aborting due to 15 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0734`. | ||
Some errors have detailed explanations: E0542, E0734. | ||
For more information about an error, try `rustc --explain E0542`. |
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.