1
Fork 0

must_not_suspend impl

This commit is contained in:
Gus Wynn 2021-09-04 19:36:51 -07:00
parent 5d2a410ff7
commit 2271376fb2
19 changed files with 587 additions and 5 deletions

View file

@ -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,