diff options
| author | Jane Lusby <jlusby@yaah.dev> | 2022-05-09 15:18:53 -0700 |
|---|---|---|
| committer | Jane Losare-Lusby <jlusby@yaah.dev> | 2022-07-08 21:18:15 +0000 |
| commit | d053a3dae0dd7cf1cd22b7ff6d2b0c0200036766 (patch) | |
| tree | c5d3e42693134a79c3cb3fd2300cb09eb9709573 | |
| parent | 1e033a9818b305b9b22e26e18c81729099aa9c19 (diff) | |
| download | rust-d053a3dae0dd7cf1cd22b7ff6d2b0c0200036766.tar.gz rust-d053a3dae0dd7cf1cd22b7ff6d2b0c0200036766.zip | |
add opt in attribute for stable-in-unstable items
| -rw-r--r-- | clippy_utils/src/qualify_min_const_fn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/qualify_min_const_fn.rs b/clippy_utils/src/qualify_min_const_fn.rs index 498dcbb8900..0e19b0296f6 100644 --- a/clippy_utils/src/qualify_min_const_fn.rs +++ b/clippy_utils/src/qualify_min_const_fn.rs @@ -353,7 +353,7 @@ fn check_terminator<'a, 'tcx>( fn is_const_fn(tcx: TyCtxt<'_>, def_id: DefId, msrv: Option<RustcVersion>) -> bool { tcx.is_const_fn(def_id) && tcx.lookup_const_stability(def_id).map_or(true, |const_stab| { - if let rustc_attr::StabilityLevel::Stable { since } = const_stab.level { + if let rustc_attr::StabilityLevel::Stable { since, .. } = const_stab.level { // Checking MSRV is manually necessary because `rustc` has no such concept. This entire // function could be removed if `rustc` provided a MSRV-aware version of `is_const_fn`. // as a part of an unimplemented MSRV check https://github.com/rust-lang/rust/issues/65262. |
