error: this type has already been used as a bound predicate
--> src/value/ser.rs:278:9
|
278 | T: Display,
| ^^^^^^^^^^
|
= note: `-D clippy::type-repetition-in-bounds` implied by `-D clippy::pedantic`
= help: consider combining the bounds: `T: Sized + Display`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
error: this type has already been used as a bound predicate
--> src/value/ser.rs:611:9
|
611 | T: Display,
| ^^^^^^^^^^
|
= help: consider combining the bounds: `T: Sized + Display`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
https://github.com/rust-lang/rust-clippy/issues/8366
error: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do
--> src/read.rs:65:45
|
65 | fn parse_str<'s>(&'s mut self, scratch: &'s mut Vec<u8>) -> Result<Reference<'de, 's, str>>;
| ^^^^^^^^^^^^^^^ help: change this to: `&'s mut [u8]`
|
= note: `-D clippy::ptr-arg` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
error: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do
--> src/read.rs:76:18
|
76 | scratch: &'s mut Vec<u8>,
| ^^^^^^^^^^^^^^^ help: change this to: `&'s mut [u8]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
error: this expression borrows a value the compiler would automatically borrow
--> tests/../src/lexical/math.rs:597:25
|
597 | for (xi, yi) in (&mut x[xstart..]).iter_mut().zip(y.iter()) {
| ^^^^^^^^^^^^^^^^^^ help: change this to: `x[xstart..]`
|
= note: `-D clippy::needless-borrow` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Before:
error: expected item, found `"serde_json requires that either `std` (default) or `alloc` feature is enabled"`
--> src/features_check/error.rs:1:1
|
1 | "serde_json requires that either `std` (default) or `alloc` feature is enabled"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected item
error[E0407]: method `visit_string` is not a member of trait `Visitor`
--> src/raw.rs:455:5
|
455 | fn visit_string<E>(self, s: String) -> Result<Self::Value, E>
| ^ ------------ help: there is an associated function with a similar name: `visit_str`
| _____|
| |
456 | | where
457 | | E: de::Error,
458 | | {
459 | | Ok(RawValue::from_owned(s.into_boxed_str()))
460 | | }
| |_____^ not a member of trait `Visitor`
error[E0046]: not all trait items implemented, missing: `collect_str`
--> src/ser.rs:1376:1
|
1376 | impl<'a, W: io::Write, F: Formatter> ser::Serializer for RawValueStrEmitter<'a, W, F> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `collect_str` in implementation
|
= help: implement the missing item: `fn collect_str<T>(self, _: &T) -> core::result::Result<<Self as serde::Serializer>::Ok, <Self as serde::Serializer>::Error> where T: Display { todo!() }`
error[E0046]: not all trait items implemented, missing: `collect_str`
--> src/value/ser.rs:864:1
|
864 | impl serde::ser::Serializer for RawValueEmitter {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `collect_str` in implementation
|
= help: implement the missing item: `fn collect_str<T>(self, _: &T) -> core::result::Result<<Self as serde::Serializer>::Ok, <Self as serde::Serializer>::Error> where T: Display { todo!() }`
error[E0599]: no method named `visit_string` found for struct `BoxedFromString` in the current scope
--> src/raw.rs:452:14
|
428 | pub struct BoxedFromString;
| --------------------------- method `visit_string` not found for this
...
452 | self.visit_string(s.to_owned())
| ^^^^^^^^^^^^ method not found in `BoxedFromString`
After:
error: expected item, found `"serde_json requires that either `std` (default) or `alloc` feature is enabled"`
--> src/features_check/error.rs:1:1
|
1 | "serde_json requires that either `std` (default) or `alloc` feature is enabled"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected item
Our indexmap dependency needs at least this version.
error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
--> github.com-1ecc6299db9ec823/indexmap-1.8.0/src/map.rs:1182:30
|
1182 | let iter = self.iter.as_slice().iter().map(Bucket::refs);
| ^^^^^^^^
error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
--> github.com-1ecc6299db9ec823/indexmap-1.8.0/src/set.rs:842:30
|
842 | let iter = self.iter.as_slice().iter().map(Bucket::key_ref);
| ^^^^^^^^
Previously serde_json supported versions of rustc older than 1.36 which
didn't have a stable alloc crate. These days ever toolchain version we
support has alloc.