Don't fire rust_2021_incompatible_closure_captures
in edition = 2021
This commit is contained in:
parent
b11bf65e4a
commit
fcd42d628c
3 changed files with 21 additions and 2 deletions
|
@ -3407,7 +3407,7 @@ declare_lint! {
|
|||
///
|
||||
/// ### Example of drop reorder
|
||||
///
|
||||
/// ```rust,compile_fail
|
||||
/// ```rust,edition2018,compile_fail
|
||||
/// #![deny(rust_2021_incompatible_closure_captures)]
|
||||
/// # #![allow(unused)]
|
||||
///
|
||||
|
@ -3443,7 +3443,7 @@ declare_lint! {
|
|||
///
|
||||
/// ### Example of auto-trait
|
||||
///
|
||||
/// ```rust,compile_fail
|
||||
/// ```rust,edition2018,compile_fail
|
||||
/// #![deny(rust_2021_incompatible_closure_captures)]
|
||||
/// use std::thread;
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue