Skip to content

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

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

Closed
kvark opened this issue May 27, 2014 · 1 comment
Closed

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

kvark opened this issue May 27, 2014 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@kvark
Copy link
Contributor

kvark commented May 27, 2014

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

@alexcrichton
Copy link
Member

I think that this has been resolved in the meantime with changes around crate_id and crate_name, I can no longer reproduce this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants
@alexcrichton @kvark @sfackler and others