Skip to content

Commit 9e68062

Browse files
committed
Ignore incompatible_msrv clippy lint for conditionally compiled code
warning: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.35.0` --> serde/src/de/impls.rs:200:39 | 200 | Ok((v as Self::Value).copysign(sign)) | ^^^^^^^^^^^^^^ ... 374 | / impl_deserialize_num! { 375 | | f32, deserialize_f32 376 | | num_self!(f32:visit_f32); 377 | | num_as_copysign_self!(f64:visit_f64); 378 | | num_as_self!(i8:visit_i8 i16:visit_i16 i32:visit_i32 i64:visit_i64); 379 | | num_as_self!(u8:visit_u8 u16:visit_u16 u32:visit_u32 u64:visit_u64); 380 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: `-W clippy::incompatible-msrv` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::incompatible_msrv)]` = note: this warning originates in the macro `num_as_copysign_self` which comes from the expansion of the macro `impl_deserialize_num` (in Nightly builds, run with -Z macro-backtrace for more info) warning: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.35.0` --> serde/src/de/impls.rs:200:39 | 200 | Ok((v as Self::Value).copysign(sign)) | ^^^^^^^^^^^^^^ ... 382 | / impl_deserialize_num! { 383 | | f64, deserialize_f64 384 | | num_self!(f64:visit_f64); 385 | | num_as_copysign_self!(f32:visit_f32); 386 | | num_as_self!(i8:visit_i8 i16:visit_i16 i32:visit_i32 i64:visit_i64); 387 | | num_as_self!(u8:visit_u8 u16:visit_u16 u32:visit_u32 u64:visit_u64); 388 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: this warning originates in the macro `num_as_copysign_self` which comes from the expansion of the macro `impl_deserialize_num` (in Nightly builds, run with -Z macro-backtrace for more info) warning: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.34.0` --> serde/src/de/impls.rs:2308:14 | 2308 | .checked_add(duration) | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv warning: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.34.0` --> serde/src/ser/impls.rs:606:26 | 606 | self.get().serialize(serializer) | ^^^^^ ... 623 | / nonzero_integers! { 624 | | NonZeroI8, 625 | | NonZeroI16, 626 | | NonZeroI32, ... | 629 | | NonZeroIsize, 630 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: this warning originates in the macro `nonzero_integers` (in Nightly builds, run with -Z macro-backtrace for more info) warning: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.34.0` --> serde/src/ser/impls.rs:1053:26 | 1053 | self.load(Ordering::Relaxed).serialize(serializer) | ^^^^^^^^^^^^^^^^^^^^^^^ ... 1061 | / atomic_impl! { 1062 | | AtomicBool "8" 1063 | | AtomicI8 "8" 1064 | | AtomicI16 "16" ... | 1070 | | AtomicUsize "ptr" 1071 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: this warning originates in the macro `atomic_impl` (in Nightly builds, run with -Z macro-backtrace for more info) warning: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.34.0` --> serde/src/ser/impls.rs:1053:26 | 1053 | self.load(Ordering::Relaxed).serialize(serializer) | ^^^^^^^^^^^^^^^^^^^^^^^ ... 1074 | / atomic_impl! { 1075 | | AtomicI64 "64" 1076 | | AtomicU64 "64" 1077 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv = note: this warning originates in the macro `atomic_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
1 parent 846f865 commit 9e68062

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

serde/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
clippy::derive_partial_eq_without_eq,
131131
clippy::enum_glob_use,
132132
clippy::explicit_auto_deref,
133+
clippy::incompatible_msrv,
133134
clippy::let_underscore_untyped,
134135
clippy::map_err_ignore,
135136
clippy::new_without_default,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy