-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wording of misapplied
must_not_suspend
error
- Loading branch information
1 parent
3a9bf45
commit df6cb95
Showing
4 changed files
with
7 additions
and
7 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,10 +1,10 @@ | ||
error: `must_not_suspend` attribute should be applied to a struct, enum, or trait | ||
error: `must_not_suspend` attribute should be applied to a struct, enum, union, or trait | ||
--> $DIR/other_items.rs:5:1 | ||
| | ||
LL | #[must_not_suspend] | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
LL | mod inner {} | ||
| ------------ is not a struct, enum, or trait | ||
| ------------ is not a struct, enum, union, or trait | ||
|
||
error: aborting due to 1 previous error | ||
|
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,12 +1,12 @@ | ||
error: `must_not_suspend` attribute should be applied to a struct, enum, or trait | ||
error: `must_not_suspend` attribute should be applied to a struct, enum, union, or trait | ||
--> $DIR/return.rs:5:1 | ||
| | ||
LL | #[must_not_suspend] | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
LL | / fn foo() -> i32 { | ||
LL | | 0 | ||
LL | | } | ||
| |_- is not a struct, enum, or trait | ||
| |_- is not a struct, enum, union, or trait | ||
|
||
error: aborting due to 1 previous error | ||
|