Skip to content

Commit d053a3d

Browse files
committed
add opt in attribute for stable-in-unstable items
1 parent 1e033a9 commit d053a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ fn check_terminator<'a, 'tcx>(
353353
fn is_const_fn(tcx: TyCtxt<'_>, def_id: DefId, msrv: Option<RustcVersion>) -> bool {
354354
tcx.is_const_fn(def_id)
355355
&& tcx.lookup_const_stability(def_id).map_or(true, |const_stab| {
356-
if let rustc_attr::StabilityLevel::Stable { since } = const_stab.level {
356+
if let rustc_attr::StabilityLevel::Stable { since, .. } = const_stab.level {
357357
// Checking MSRV is manually necessary because `rustc` has no such concept. This entire
358358
// function could be removed if `rustc` provided a MSRV-aware version of `is_const_fn`.
359359
// as a part of an unimplemented MSRV check https://github.com/rust-lang/rust/issues/65262.

0 commit comments

Comments
 (0)