Skip to content

Commit

Permalink
Unrolled build for rust-lang#130343
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#130343 - Fayti1703:patch-correct-async-block-lint-doc, r=compiler-errors

docs: Enable required feature for 'closure_returning_async_block' lint

Failing to do this results in the lint example output complaining about the lint not existing instead of the thing the lint is supposed to be complaining about.

See <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#closure-returning-async-block>:
![image](https://github.com/user-attachments/assets/78bae16f-3fb6-4d6d-b8aa-768b477cd187)
  • Loading branch information
rust-timer authored Sep 14, 2024
2 parents e7386b3 + 14285e9 commit 2511e37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_lint/src/async_closures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ declare_lint! {
/// ### Example
///
/// ```rust
/// #![feature(async_closure)]
/// #![warn(closure_returning_async_block)]
/// let c = |x: &str| async {};
/// ```
Expand Down

0 comments on commit 2511e37

Please sign in to comment.