Skip to content

Commit 2e907aa

Browse files
committed
Rename Since -> StableSince in preparation for a DeprecatedSince
1 parent f2a0776 commit 2e907aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: clippy_utils/src/qualify_min_const_fn.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use crate::msrvs::Msrv;
77
use hir::LangItem;
8-
use rustc_attr::Since;
8+
use rustc_attr::StableSince;
99
use rustc_const_eval::transform::check_consts::ConstCx;
1010
use rustc_hir as hir;
1111
use rustc_hir::def_id::DefId;
@@ -372,9 +372,9 @@ fn is_const_fn(tcx: TyCtxt<'_>, def_id: DefId, msrv: &Msrv) -> bool {
372372
// as a part of an unimplemented MSRV check https://github.com/rust-lang/rust/issues/65262.
373373

374374
let const_stab_rust_version = match since {
375-
Since::Version(version) => version,
376-
Since::Current => rustc_session::RustcVersion::CURRENT,
377-
Since::Err => return false,
375+
StableSince::Version(version) => version,
376+
StableSince::Current => rustc_session::RustcVersion::CURRENT,
377+
StableSince::Err => return false,
378378
};
379379

380380
msrv.meets(RustcVersion::new(

0 commit comments

Comments
 (0)