Skip to content

Commit

Permalink
Ignore incompatible_msrv clippy lint for conditionally compiled code
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed Feb 10, 2024
1 parent f9cc2df commit f32b420
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
clippy::cast_lossless,
clippy::cast_possible_truncation,
clippy::doc_markdown,
clippy::incompatible_msrv,
clippy::items_after_statements,
clippy::manual_map,
clippy::match_bool,
Expand Down

0 comments on commit f32b420

Please sign in to comment.