must_not_suspend impl
This commit is contained in:
parent
5d2a410ff7
commit
2271376fb2
19 changed files with 587 additions and 5 deletions
|
@ -679,6 +679,10 @@ declare_features! (
|
|||
/// Allows `let...else` statements.
|
||||
(active, let_else, "1.56.0", Some(87335), None),
|
||||
|
||||
/// Allows `#[must_not_suspend]`.
|
||||
(active, must_not_suspend, "1.56.0", Some(83310), None),
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// feature-group-end: actual feature gates
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
|
@ -202,6 +202,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
|||
ungated!(forbid, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#)),
|
||||
ungated!(deny, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#)),
|
||||
ungated!(must_use, Normal, template!(Word, NameValueStr: "reason")),
|
||||
gated!(
|
||||
must_not_suspend, Normal, template!(Word, NameValueStr: "reason"), must_not_suspend,
|
||||
experimental!(must_not_suspend)
|
||||
),
|
||||
// FIXME(#14407)
|
||||
ungated!(
|
||||
deprecated, Normal,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue