rust-embedded-community / serde-json-core

`serde-json` for `no_std` programs
Apache License 2.0
161 stars 59 forks source link

`cargo check` failure #6

Closed sanmai-NL closed 5 years ago

sanmai-NL commented 6 years ago

the trait bound de::Error: std::error::Error is not satisfied.

->

   Checking serde-json-core v0.0.1
error[E0277]: the trait bound `de::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/de/enum_.rs:17:15
   |
17 | impl<'a, 'de> de::EnumAccess<'de> for UnitVariantAccess<'a, 'de> {
   |               ^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `de::Error`

error[E0277]: the trait bound `de::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/de/enum_.rs:30:15
   |
30 | impl<'de, 'a> de::VariantAccess<'de> for UnitVariantAccess<'a, 'de> {
   |               ^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `de::Error`

error[E0277]: the trait bound `de::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/de/map.rs:19:15
   |
19 | impl<'a, 'de> de::MapAccess<'de> for MapAccess<'a, 'de> {
   |               ^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `de::Error`

error[E0277]: the trait bound `de::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/de/map.rs:69:15
   |
69 | impl<'de, 'a> de::Deserializer<'de> for MapKey<'a, 'de> {
   |               ^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `de::Error`

error[E0277]: the trait bound `de::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/de/seq.rs:19:15
   |
19 | impl<'a, 'de> de::SeqAccess<'de> for SeqAccess<'a, 'de> {
   |               ^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `de::Error`

error[E0277]: the trait bound `de::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/de/mod.rs:265:15
    |
265 | impl<'a, 'de> de::Deserializer<'de> for &'a mut Deserializer<'de> {
    |               ^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `de::Error`

error[E0277]: the trait bound `de::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/de/mod.rs:541:6
    |
541 | impl de::Error for Error {
    |      ^^^^^^^^^ the trait `std::error::Error` is not implemented for `de::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/seq.rs:24:13
   |
24 | impl<'a, B> ser::SerializeSeq for SerializeSeq<'a, B>
   |             ^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/seq.rs:50:13
   |
50 | impl<'a, B> ser::SerializeTuple for SerializeSeq<'a, B>
   |             ^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
  --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/struct_.rs:24:13
   |
24 | impl<'a, B> ser::SerializeStruct for SerializeStruct<'a, B>
   |             ^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/mod.rs:121:13
    |
121 | impl<'a, B> ser::Serializer for &'a mut Serializer<B>
    |             ^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/mod.rs:339:6
    |
339 | impl ser::Error for Error {
    |      ^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/mod.rs:350:6
    |
350 | impl ser::SerializeTupleStruct for Unreachable {
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/mod.rs:363:6
    |
363 | impl ser::SerializeTupleVariant for Unreachable {
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/mod.rs:376:6
    |
376 | impl ser::SerializeMap for Unreachable {
    |      ^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error[E0277]: the trait bound `ser::Error: std::error::Error` is not satisfied
   --> /home/sanmai/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-json-core-0.0.1/src/ser/mod.rs:399:6
    |
399 | impl ser::SerializeStructVariant for Unreachable {
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `ser::Error`

error: aborting due to 16 previous errors

Meta

cargo 1.31.0-nightly (5dbac9888 2018-10-08)
release: 1.31.0
commit-hash: 5dbac98885199bbd7c0f189d7405b5523434d1e3
commit-date: 2018-10-08

rustc 1.31.0-nightly (46880f41b 2018-10-15)
binary: rustc
commit-hash: 46880f41b7aeb897b8245474196bba9dc11f0e88
commit-date: 2018-10-15
host: x86_64-unknown-linux-gnu
release: 1.31.0-nightly
LLVM version: 8.0
cbeck88 commented 5 years ago

Any update on this? repros also on cargo 1.32.0-nightly (5e85ba14a 2018-12-02)

gbip commented 5 years ago

I think that it was solved by #7 :smile:

cbeck88 commented 5 years ago

thanks :)

chris13524 commented 5 years ago

Does this actually fix the issue? I'm still seeing the error when I depend directly on this repository:

serde-json-core = { git = "https://github.com/japaric/serde-json-core" }
Lawliet-Chan commented 5 years ago

Does this actually fix the issue? I meet the same error. My cargo.toml is [dependencies] serde-json-core = "0.0.1"

And my rust version is rustc 1.38.0-nightly (69656fa4c 2019-07-13) rustup 1.19.0 (2af131cf9 2019-09-08)

sanmai-NL commented 5 years ago

@japaric: maybe this should be reopened.