Skip to content

Commit f32b420

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.53.0` --> src/identifier.rs:331:40 | 331 | let zero_bits_on_string_end = repr.leading_zeros(); | ^^^^^^^^^^^^^^^ | = 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)]` warning: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.53.0` --> src/identifier.rs:420:37 | 420 | let len_bits = usize_bits - len.leading_zeros() as usize; | ^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:48:52 | 48 | let (pre, text) = if let Some(text) = text.strip_prefix('-') { | ^^^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:59:54 | 59 | let (build, text) = if let Some(text) = text.strip_prefix('+') { | ^^^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:192:31 | 192 | if let Some(rest) = input.strip_prefix('*') { | ^^^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:194:38 | 194 | } else if let Some(rest) = input.strip_prefix('x') { | ^^^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:196:38 | 196 | } else if let Some(rest) = input.strip_prefix('X') { | ^^^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:204:31 | 204 | if let Some(rest) = input.strip_prefix('.') { | ^^^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:301:50 | 301 | let (minor, text) = if let Some(text) = text.strip_prefix('.') { | ^^^^^^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:317:50 | 317 | let (patch, text) = if let Some(text) = text.strip_prefix('.') { | ^^^^^^^^^^^^^^^^^ | = 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.37.0` --> src/parse.rs:387:22 | 387 | unsafe { out.as_mut_ptr().add(depth).write(comparator) } | ^^^^^^^^^^^^ | = 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.45.0` --> src/parse.rs:391:41 | 391 | let text = if let Some(text) = text.strip_prefix(',') { | ^^^^^^^^^^^^^^^^^ | = 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.37.0` --> src/parse.rs:407:18 | 407 | unsafe { out.as_mut_ptr().add(depth).write(comparator) } | ^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
1 parent f9cc2df commit f32b420

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
clippy::cast_lossless,
7171
clippy::cast_possible_truncation,
7272
clippy::doc_markdown,
73+
clippy::incompatible_msrv,
7374
clippy::items_after_statements,
7475
clippy::manual_map,
7576
clippy::match_bool,

0 commit comments

Comments
 (0)