Skip to content

rustdoc failing on unused attribute "crate_id" if warnings are denied #14450

Closed
@kvark

Description

@kvark
rustdoc lib.rs
lib.rs:1:1: 2:2 error: unused attribute, #[deny(unused_attribute)] on by default
lib.rs:1 #![crate_id = "compress#0.1"]
lib.rs:2 #![crate_type = "rlib"]
error: aborting due to previous error
task '<unnamed>' failed at 'Box<Any>', /mnt/code/other/rust/src/libsyntax/diagnostic.rs:127
task '<main>' failed at 'called `Result::unwrap()` on an `Err` value: Box core::any::Any:Send', /mnt/code/other/rust/src/libcore/result.rs:543
Makefile:45: recipe for target 'docs' failed
make: *** [docs] Error 101

Related to #14373. When a crate has "deny(warnings)" rustdoc fails to process "crate_id". Happened to rust-compress, logs and revision are here:
https://travis-ci.org/alexcrichton/rust-compress/builds/26046844

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions