We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e033a9 commit d053a3dCopy full SHA for d053a3d
clippy_utils/src/qualify_min_const_fn.rs
@@ -353,7 +353,7 @@ fn check_terminator<'a, 'tcx>(
353
fn is_const_fn(tcx: TyCtxt<'_>, def_id: DefId, msrv: Option<RustcVersion>) -> bool {
354
tcx.is_const_fn(def_id)
355
&& tcx.lookup_const_stability(def_id).map_or(true, |const_stab| {
356
- if let rustc_attr::StabilityLevel::Stable { since } = const_stab.level {
+ if let rustc_attr::StabilityLevel::Stable { since, .. } = const_stab.level {
357
// Checking MSRV is manually necessary because `rustc` has no such concept. This entire
358
// function could be removed if `rustc` provided a MSRV-aware version of `is_const_fn`.
359
// as a part of an unimplemented MSRV check https://github.com/rust-lang/rust/issues/65262.
0 commit comments