must_not_suspend impl
This commit is contained in:
parent
5d2a410ff7
commit
2271376fb2
19 changed files with 587 additions and 5 deletions
|
@ -314,6 +314,13 @@ declare_lint! {
|
|||
"imports that are never used"
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
/// [the reference]: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute
|
||||
pub MUST_NOT_SUSPEND,
|
||||
Warn,
|
||||
"Use of a `#[must_not_suspend]` value across a yield point",
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
/// The `unused_extern_crates` lint guards against `extern crate` items
|
||||
/// that are never used.
|
||||
|
@ -2993,6 +3000,7 @@ declare_lint_pass! {
|
|||
CENUM_IMPL_DROP_CAST,
|
||||
CONST_EVALUATABLE_UNCHECKED,
|
||||
INEFFECTIVE_UNSTABLE_TRAIT_IMPL,
|
||||
MUST_NOT_SUSPEND,
|
||||
UNINHABITED_STATIC,
|
||||
FUNCTION_ITEM_REFERENCES,
|
||||
USELESS_DEPRECATED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue