diff options
| author | bors <bors@rust-lang.org> | 2024-07-11 06:59:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-11 06:59:10 +0000 |
| commit | 9b0043095a2ddceb2ddad7704c084293d0c8cd09 (patch) | |
| tree | 69a878f28a8f4e97956bf016373941d78c4d0e0f /src | |
| parent | 8c39ac9eccdfaeff11bd3b6107817a81fe0a3a43 (diff) | |
| parent | acc13e29d1f42805ea0701c05f59beb646978c1d (diff) | |
Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk
Implement simple, unstable lint to suggest turning closure-of-async-block into async-closure
We want to eventually suggest people to turn `|| async {}` to `async || {}`. This begins doing that. It's a pretty rudimentary lint, but I wanted to get something down so I wouldn't lose the code.
Tracking:
* #62290
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/lint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/lint.rs b/src/librustdoc/lint.rs index 8eaca70eaff..5a8fd3ebb9c 100644 --- a/src/librustdoc/lint.rs +++ b/src/librustdoc/lint.rs @@ -66,7 +66,7 @@ where macro_rules! declare_rustdoc_lint { ( $(#[$attr:meta])* $name: ident, $level: ident, $descr: literal $(,)? - $(@feature_gate = $gate:expr;)? + $(@feature_gate = $gate:ident;)? ) => { declare_tool_lint! { $(#[$attr])* pub rustdoc::$name, $level, $descr @@ -128,7 +128,7 @@ declare_rustdoc_lint! { MISSING_DOC_CODE_EXAMPLES, Allow, "detects publicly-exported items without code samples in their documentation", - @feature_gate = rustc_span::symbol::sym::rustdoc_missing_doc_code_examples; + @feature_gate = rustdoc_missing_doc_code_examples; } declare_rustdoc_lint! { |
