Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: serde-rs/json Loading
base: v1.0.115
Choose a base ref
...
head repository: serde-rs/json Loading
compare: v1.0.117
Choose a head ref
  • 11 commits
  • 14 files changed
  • 2 contributors

Commits on Apr 6, 2024

  1. Resolve legacy_numeric_constants clippy lints

        warning: usage of a legacy numeric method
           --> src/de.rs:484:73
            |
        484 | ...                   if overflow!(significand * 10 + digit, u64::max_value()) {
            |                                                                   ^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
            = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
        help: use the associated constant instead
            |
        484 |                             if overflow!(significand * 10 + digit, u64::MAX) {
            |                                                                         ~~~
    
        warning: usage of a legacy numeric method
           --> src/de.rs:536:57
            |
        536 |             if overflow!(significand * 10 + digit, u64::max_value()) {
            |                                                         ^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        536 |             if overflow!(significand * 10 + digit, u64::MAX) {
            |                                                         ~~~
    
        warning: usage of a legacy numeric method
           --> src/de.rs:600:49
            |
        600 |             if overflow!(exp * 10 + digit, i32::max_value()) {
            |                                                 ^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        600 |             if overflow!(exp * 10 + digit, i32::MAX) {
            |                                                 ~~~
    
        warning: usage of a legacy numeric method
           --> src/number.rs:100:39
            |
        100 |             N::PosInt(v) => v <= i64::max_value() as u64,
            |                                       ^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        100 |             N::PosInt(v) => v <= i64::MAX as u64,
            |                                       ~~~
    
        warning: usage of a legacy numeric method
           --> src/number.rs:192:30
            |
        192 |                 if n <= i64::max_value() as u64 {
            |                              ^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        192 |                 if n <= i64::MAX as u64 {
            |                              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/../src/lexical/exponent.rs:11:21
           |
        11 |     if value > i32::max_value() as usize {
           |                     ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
           = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
        help: use the associated constant instead
           |
        11 |     if value > i32::MAX as usize {
           |                     ~~~
    
        warning: usage of a legacy numeric method
          --> tests/../src/lexical/exponent.rs:12:14
           |
        12 |         i32::max_value()
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        12 |         i32::MAX
           |              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/../src/lexical/rounding.rs:28:14
           |
        28 |         u64::max_value()
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        28 |         u64::MAX
           |              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:21:34
           |
        21 |         scientific_exponent(i32::min_value(), 0, 0),
           |                                  ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        21 |         scientific_exponent(i32::MIN, 0, 0),
           |                                  ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:22:14
           |
        22 |         i32::min_value()
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        22 |         i32::MIN
           |              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:25:34
           |
        25 |         scientific_exponent(i32::min_value(), 0, 5),
           |                                  ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        25 |         scientific_exponent(i32::MIN, 0, 5),
           |                                  ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:26:14
           |
        26 |         i32::min_value()
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        26 |         i32::MIN
           |              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:31:34
           |
        31 |         scientific_exponent(i32::max_value(), 0, 0),
           |                                  ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        31 |         scientific_exponent(i32::MAX, 0, 0),
           |                                  ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:32:14
           |
        32 |         i32::max_value() - 1
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        32 |         i32::MAX - 1
           |              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:35:34
           |
        35 |         scientific_exponent(i32::max_value(), 5, 0),
           |                                  ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        35 |         scientific_exponent(i32::MAX, 5, 0),
           |                                  ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:36:14
           |
        36 |         i32::max_value()
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        36 |         i32::MAX
           |              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:45:32
           |
        45 |         mantissa_exponent(i32::max_value(), 5, 0),
           |                                ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        45 |         mantissa_exponent(i32::MAX, 5, 0),
           |                                ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:46:14
           |
        46 |         i32::max_value() - 5
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        46 |         i32::MAX - 5
           |              ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:48:39
           |
        48 |     assert_eq!(mantissa_exponent(i32::max_value(), 0, 5), i32::max_value());
           |                                       ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        48 |     assert_eq!(mantissa_exponent(i32::MAX, 0, 5), i32::max_value());
           |                                       ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:48:64
           |
        48 |     assert_eq!(mantissa_exponent(i32::max_value(), 0, 5), i32::max_value());
           |                                                                ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        48 |     assert_eq!(mantissa_exponent(i32::max_value(), 0, 5), i32::MAX);
           |                                                                ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:49:39
           |
        49 |     assert_eq!(mantissa_exponent(i32::min_value(), 5, 0), i32::min_value());
           |                                       ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        49 |     assert_eq!(mantissa_exponent(i32::MIN, 5, 0), i32::min_value());
           |                                       ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:49:64
           |
        49 |     assert_eq!(mantissa_exponent(i32::min_value(), 5, 0), i32::min_value());
           |                                                                ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        49 |     assert_eq!(mantissa_exponent(i32::min_value(), 5, 0), i32::MIN);
           |                                                                ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:51:32
           |
        51 |         mantissa_exponent(i32::min_value(), 0, 5),
           |                                ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        51 |         mantissa_exponent(i32::MIN, 0, 5),
           |                                ~~~
    
        warning: usage of a legacy numeric method
          --> tests/lexical/exponent.rs:52:14
           |
        52 |         i32::min_value() + 5
           |              ^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
           |
        52 |         i32::MIN + 5
           |              ~~~
    
        warning: importing legacy numeric constants
          --> tests/test.rs:47:11
           |
        47 | use std::{i16, i32, i64, i8};
           |           ^^^
           |
           = help: remove this import
           = note: then `i16::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
           = note: `#[warn(clippy::legacy_numeric_constants)]` on by default
    
        warning: importing legacy numeric constants
          --> tests/test.rs:47:16
           |
        47 | use std::{i16, i32, i64, i8};
           |                ^^^
           |
           = help: remove this import
           = note: then `i32::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    
        warning: importing legacy numeric constants
          --> tests/test.rs:47:21
           |
        47 | use std::{i16, i32, i64, i8};
           |                     ^^^
           |
           = help: remove this import
           = note: then `i64::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    
        warning: importing legacy numeric constants
          --> tests/test.rs:47:26
           |
        47 | use std::{i16, i32, i64, i8};
           |                          ^^
           |
           = help: remove this import
           = note: then `i8::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    
        warning: importing legacy numeric constants
          --> tests/test.rs:48:11
           |
        48 | use std::{u16, u32, u64, u8};
           |           ^^^
           |
           = help: remove this import
           = note: then `u16::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    
        warning: importing legacy numeric constants
          --> tests/test.rs:48:16
           |
        48 | use std::{u16, u32, u64, u8};
           |                ^^^
           |
           = help: remove this import
           = note: then `u32::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    
        warning: importing legacy numeric constants
          --> tests/test.rs:48:21
           |
        48 | use std::{u16, u32, u64, u8};
           |                     ^^^
           |
           = help: remove this import
           = note: then `u64::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    
        warning: importing legacy numeric constants
          --> tests/test.rs:48:26
           |
        48 | use std::{u16, u32, u64, u8};
           |                          ^^
           |
           = help: remove this import
           = note: then `u8::<CONST>` will resolve to the respective associated constant
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:161:22
            |
        161 |     let v = to_value(::std::f64::NAN.copysign(1.0)).unwrap();
            |                      ^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        161 |     let v = to_value(f64::NAN.copysign(1.0)).unwrap();
            |                      ~~~~~~~~
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:164:22
            |
        164 |     let v = to_value(::std::f64::NAN.copysign(-1.0)).unwrap();
            |                      ^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        164 |     let v = to_value(f64::NAN.copysign(-1.0)).unwrap();
            |                      ~~~~~~~~
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:167:22
            |
        167 |     let v = to_value(::std::f64::INFINITY).unwrap();
            |                      ^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        167 |     let v = to_value(f64::INFINITY).unwrap();
            |                      ~~~~~~~~~~~~~
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:170:23
            |
        170 |     let v = to_value(-::std::f64::INFINITY).unwrap();
            |                       ^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        170 |     let v = to_value(-f64::INFINITY).unwrap();
            |                       ~~~~~~~~~~~~~
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:173:22
            |
        173 |     let v = to_value(::std::f32::NAN.copysign(1.0)).unwrap();
            |                      ^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        173 |     let v = to_value(f32::NAN.copysign(1.0)).unwrap();
            |                      ~~~~~~~~
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:176:22
            |
        176 |     let v = to_value(::std::f32::NAN.copysign(-1.0)).unwrap();
            |                      ^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        176 |     let v = to_value(f32::NAN.copysign(-1.0)).unwrap();
            |                      ~~~~~~~~
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:179:22
            |
        179 |     let v = to_value(::std::f32::INFINITY).unwrap();
            |                      ^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        179 |     let v = to_value(f32::INFINITY).unwrap();
            |                      ~~~~~~~~~~~~~
    
        warning: usage of a legacy numeric constant
           --> tests/test.rs:182:23
            |
        182 |     let v = to_value(-::std::f32::INFINITY).unwrap();
            |                       ^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
            |
        182 |     let v = to_value(-f32::INFINITY).unwrap();
            |                       ~~~~~~~~~~~~~
    
        warning: usage of a legacy numeric method
            --> tests/test.rs:2243:26
             |
        2243 |     let signed = &[i128::min_value(), -1, 0, 1, i128::max_value()];
             |                          ^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
             |
        2243 |     let signed = &[i128::MIN, -1, 0, 1, i128::max_value()];
             |                          ~~~
    
        warning: usage of a legacy numeric method
            --> tests/test.rs:2243:55
             |
        2243 |     let signed = &[i128::min_value(), -1, 0, 1, i128::max_value()];
             |                                                       ^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
             |
        2243 |     let signed = &[i128::min_value(), -1, 0, 1, i128::MAX];
             |                                                       ~~~
    
        warning: usage of a legacy numeric method
            --> tests/test.rs:2244:34
             |
        2244 |     let unsigned = &[0, 1, u128::max_value()];
             |                                  ^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
             |
        2244 |     let unsigned = &[0, 1, u128::MAX];
             |                                  ~~~
    
        warning: usage of a legacy numeric method
            --> tests/test.rs:2280:36
             |
        2280 |     let signed = &[i128::from(i64::min_value()), i128::from(u64::max_value())];
             |                                    ^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
             |
        2280 |     let signed = &[i128::from(i64::MIN), i128::from(u64::max_value())];
             |                                    ~~~
    
        warning: usage of a legacy numeric method
            --> tests/test.rs:2280:66
             |
        2280 |     let signed = &[i128::from(i64::min_value()), i128::from(u64::max_value())];
             |                                                                  ^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
             |
        2280 |     let signed = &[i128::from(i64::min_value()), i128::from(u64::MAX)];
             |                                                                  ~~~
    
        warning: usage of a legacy numeric method
            --> tests/test.rs:2281:41
             |
        2281 |     let unsigned = &[0, u128::from(u64::max_value())];
             |                                         ^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
             |
        2281 |     let unsigned = &[0, u128::from(u64::MAX)];
             |                                         ~~~
    
        warning: usage of a legacy numeric method
            --> tests/test.rs:2294:44
             |
        2294 |         let err = to_value(u128::from(u64::max_value()) + 1).unwrap_err();
             |                                            ^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
        help: use the associated constant instead
             |
        2294 |         let err = to_value(u128::from(u64::MAX) + 1).unwrap_err();
             |                                            ~~~
    dtolnay committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    0baba28 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Revert "Temporarily disable miri on doctests"

    This reverts commit 3a3f61b.
    dtolnay committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    2e15e3d View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    25dc750 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    051ce97 View commit details
    Browse the repository at this point in the history
  2. Hide "non-exhaustive patterns" errors when crate fails to compile

    Fixes #1125.
    
        error: expected item, found `"serde_json requires that either `std` (default) or `alloc` feature is enabled"`
         --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.115/src/features_check/error.rs:1:1
          |
        1 | "serde_json requires that either `std` (default) or `alloc` feature is enabled"
          | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected item
          |
          = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
    
        error[E0004]: non-exhaustive patterns: `Value::String(_)` not covered
           --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.115/src/value/de.rs:216:15
            |
        216 |         match self {
            |               ^^^^ pattern `Value::String(_)` not covered
            |
        note: `Value` defined here
           --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.115/src/value/mod.rs:116:10
            |
        116 | pub enum Value {
            |          ^^^^^
        ...
        151 |     String(String),
            |     ------ not covered
            = note: the matched value is of type `Value`
        help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
            |
        223 ~             Value::Object(v) => visit_object(v, visitor),
        224 ~             Value::String(_) => todo!(),
            |
    
        error[E0004]: non-exhaustive patterns: `Cow::Owned(_)` not covered
            --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.115/src/value/de.rs:1338:15
             |
        1338 |         match self.value {
             |               ^^^^^^^^^^ pattern `Cow::Owned(_)` not covered
             |
        note: `Cow<'_, str>` defined here
            --> /rustc/98aa3624be70462d6a25ed5544333e3df62f4c66/library/alloc/src/borrow.rs:180:1
            ::: /rustc/98aa3624be70462d6a25ed5544333e3df62f4c66/library/alloc/src/borrow.rs:190:5
             |
             = note: not covered
             = note: the matched value is of type `Cow<'_, str>`
        help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
             |
        1339 ~             Cow::Borrowed(string) => visitor.visit_borrowed_str(string),
        1340 ~             Cow::Owned(_) => todo!(),
             |
    
        error[E0004]: non-exhaustive patterns: `&Value::Object(_)` not covered
           --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.115/src/value/ser.rs:17:15
            |
        17  |         match self {
            |               ^^^^ pattern `&Value::Object(_)` not covered
            |
        note: `Value` defined here
           --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.115/src/value/mod.rs:116:10
            |
        116 | pub enum Value {
            |          ^^^^^
        ...
        175 |     Object(Map<String, Value>),
            |     ------ not covered
            = note: the matched value is of type `&Value`
        help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
            |
        22  ~             Value::Array(v) => v.serialize(serializer),
        23  ~             &Value::Object(_) => todo!(),
            |
    dtolnay committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    12c8ee0 View commit details
    Browse the repository at this point in the history
  3. Release 1.0.116

    dtolnay committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    a3f62bb View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Resolve unexpected_cfgs warning

        warning: unexpected `cfg` condition name: `limb_width_32`
          --> src/lexical/mod.rs:31:7
           |
        31 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
           = note: `#[warn(unexpected_cfgs)]` on by default
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> src/lexical/mod.rs:34:7
           |
        34 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
         --> src/lexical/large_powers.rs:5:7
          |
        5 | #[cfg(limb_width_32)]
          |       ^^^^^^^^^^^^^
          |
          = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
          = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
         --> src/lexical/large_powers.rs:8:7
          |
        8 | #[cfg(limb_width_64)]
          |       ^^^^^^^^^^^^^
          |
          = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
          = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> src/lexical/math.rs:40:7
           |
        40 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> src/lexical/math.rs:43:7
           |
        43 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> src/lexical/math.rs:46:7
           |
        46 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> src/lexical/math.rs:49:7
           |
        49 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> src/lexical/math.rs:53:7
           |
        53 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> src/lexical/math.rs:56:7
           |
        56 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> src/lexical/math.rs:59:7
           |
        59 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> src/lexical/math.rs:62:7
           |
        62 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> src/lexical/math.rs:82:7
           |
        82 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> src/lexical/math.rs:89:7
           |
        89 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
         --> src/lexical/small_powers.rs:6:7
          |
        6 | #[cfg(limb_width_32)]
          |       ^^^^^^^^^^^^^
          |
          = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
          = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> src/lexical/small_powers.rs:12:7
           |
        12 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> src/lexical/small_powers.rs:18:7
           |
        18 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/../src/lexical/mod.rs:31:7
           |
        31 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
           = note: `#[warn(unexpected_cfgs)]` on by default
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/../src/lexical/mod.rs:34:7
           |
        34 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
         --> tests/../src/lexical/large_powers.rs:5:7
          |
        5 | #[cfg(limb_width_32)]
          |       ^^^^^^^^^^^^^
          |
          = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
          = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
         --> tests/../src/lexical/large_powers.rs:8:7
          |
        8 | #[cfg(limb_width_64)]
          |       ^^^^^^^^^^^^^
          |
          = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
          = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/../src/lexical/math.rs:40:7
           |
        40 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/../src/lexical/math.rs:43:7
           |
        43 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/../src/lexical/math.rs:46:7
           |
        46 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/../src/lexical/math.rs:49:7
           |
        49 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/../src/lexical/math.rs:53:7
           |
        53 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/../src/lexical/math.rs:56:7
           |
        56 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/../src/lexical/math.rs:59:7
           |
        59 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/../src/lexical/math.rs:62:7
           |
        62 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/../src/lexical/math.rs:82:7
           |
        82 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/../src/lexical/math.rs:89:7
           |
        89 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
         --> tests/../src/lexical/small_powers.rs:6:7
          |
        6 | #[cfg(limb_width_32)]
          |       ^^^^^^^^^^^^^
          |
          = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
          = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/../src/lexical/small_powers.rs:12:7
           |
        12 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/../src/lexical/small_powers.rs:18:7
           |
        18 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_32`
          --> tests/lexical/math.rs:21:7
           |
        21 | #[cfg(limb_width_32)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_32)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    
        warning: unexpected `cfg` condition name: `limb_width_64`
          --> tests/lexical/math.rs:26:7
           |
        26 | #[cfg(limb_width_64)]
           |       ^^^^^^^^^^^^^
           |
           = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(limb_width_64)");` to the top of the `build.rs`
           = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
    dtolnay committed May 7, 2024
    Configuration menu
    Copy the full SHA
    98f1a24 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1130 from serde-rs/checkcfg

    Resolve unexpected_cfgs warning
    dtolnay committed May 7, 2024
    Configuration menu
    Copy the full SHA
    b4fc245 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fdf99c7 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Configuration menu
    Copy the full SHA
    4517c7a View commit details
    Browse the repository at this point in the history
  2. Release 1.0.117

    dtolnay committed May 8, 2024
    Configuration menu
    Copy the full SHA
    0ae247c View commit details
    Browse the repository at this point in the history
Loading