Skip to content

Commit e81009d

Browse files
committed
Include ErrorGuaranteed in StableSince::Err.
1 parent 11e3ae3 commit e81009d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/std_instead_of_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ fn is_stable(cx: &LateContext<'_>, mut def_id: DefId, msrv: Msrv) -> bool {
249249
let stable = match since {
250250
StableSince::Version(v) => msrv.meets(cx, v),
251251
StableSince::Current => msrv.current(cx).is_none(),
252-
StableSince::Err => false,
252+
StableSince::Err(_) => false,
253253
};
254254

255255
if !stable {

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ pub fn is_stable_const_fn(cx: &LateContext<'_>, def_id: DefId, msrv: Msrv) -> bo
432432
let const_stab_rust_version = match since {
433433
StableSince::Version(version) => version,
434434
StableSince::Current => RustcVersion::CURRENT,
435-
StableSince::Err => return false,
435+
StableSince::Err(_) => return false,
436436
};
437437

438438
msrv.meets(cx, const_stab_rust_version)

0 commit comments

Comments
 (0)