Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo doc failing on serde as dependency [v1.0.66] #1318

Closed
Lakier15 opened this issue Jun 20, 2018 · 1 comment
Closed

Cargo doc failing on serde as dependency [v1.0.66] #1318

Lakier15 opened this issue Jun 20, 2018 · 1 comment

Comments

@Lakier15
Copy link

Cargo doc seems to fail on 1.0.66.

Steps to reproduce:

  • Run
cargo new serde_doc_fail
  • Add to Cargo.toml
[dependencies]
serde = "1.0.66"
  • Run
cargo doc

Output:

Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling serde v1.0.66
 Documenting serde v1.0.66
error: unused import: `SeqAccess`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/value.rs:41:44
   |
41 | use de::{self, Expected, IntoDeserializer, SeqAccess};
   |                                            ^^^^^^^^^
   |
note: lint level defined here
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/lib.rs:129:23
   |
129| #![deny(missing_docs, unused_imports)]
   |                       ^^^^^^^^^^^^^^

error: unused import: `private::de::size_hint`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/value.rs:42:5
   |
42 | use private::de::size_hint;
   |     ^^^^^^^^^^^^^^^^^^^^^^

error: unused import: `Unexpected`
    --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/value.rs:1316:20
     |
1316 |     use de::{self, Unexpected};
     |                    ^^^^^^^^^^

error: unused imports: `Unexpected`, `VariantAccess`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/impls.rs:12:62
   |
12 |     Deserialize, Deserializer, EnumAccess, Error, SeqAccess, Unexpected, VariantAccess, Visitor,
   |                                                              ^^^^^^^^^^  ^^^^^^^^^^^^^

error: unused import: `de::MapAccess`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/impls.rs:16:5
   |
16 | use de::MapAccess;
   |     ^^^^^^^^^^^^^

error: unused import: `de::from_primitive::FromPrimitive`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/impls.rs:18:5
   |
18 | use de::from_primitive::FromPrimitive;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unused import: `private::de::InPlaceSeed`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/impls.rs:19:5
   |
19 | use private::de::InPlaceSeed;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^

error: unused import: `private::de::size_hint`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/de/impls.rs:22:5
   |
22 | use private::de::size_hint;
   |     ^^^^^^^^^^^^^^^^^^^^^^

error: unused imports: `Error`, `SerializeTuple`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/ser/impls.rs:11:11
   |
11 | use ser::{Error, Serialize, SerializeTuple, Serializer};
   |           ^^^^^             ^^^^^^^^^^^^^^

error: unused import: `Unexpected`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/private/de.rs:14:21
   |
14 | use de::{MapAccess, Unexpected};
   |                     ^^^^^^^^^^

error: unused import: `super::size_hint`
   --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/private/de.rs:232:9
    |
232 |     use super::size_hint;
    |         ^^^^^^^^^^^^^^^^

error: unused import: `SerializeStruct`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/private/ser.rs:11:54
   |
11 | use ser::{self, Impossible, Serialize, SerializeMap, SerializeStruct, Serializer};
   |                                                      ^^^^^^^^^^^^^^^

error: unused import: `ContentSerializer`
  --> /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/private/ser.rs:15:14
   |
15 |     Content, ContentSerializer, SerializeStructVariantAsMapValue, SerializeTupleVariantAsMapValue,
   |              ^^^^^^^^^^^^^^^^^

error: Compilation failed, aborting rustdoc

error: Could not document `serde`.

Caused by:
  process didn't exit successfully: `rustdoc --crate-name serde /home/CL/alex.gasbarroni/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.66/src/lib.rs -o /home/CL/alex.gasbarroni/git/ser/target/doc --cfg feature="default" --cfg feature="std" -L dependency=/home/CL/alex.gasbarroni/git/ser/target/debug/deps --cfg de_boxed_c_str --cfg de_rc_dst --cfg core_duration --cfg integer128 --cfg num_nonzero` (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: build failed
@dtolnay
Copy link
Member

dtolnay commented Jun 20, 2018

Thanks! This is a compiler bug. I filed rust-lang/rust#51661 to follow up.

@dtolnay dtolnay closed this as completed Jun 20, 2018
@dtolnay dtolnay added the bug label Jun 27, 2018
@dtolnay dtolnay added compiler bug and removed bug labels Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants