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

an unknown tool name found in scoped lint: rustdoc #125

Closed
Oliboy50 opened this issue Jul 18, 2021 · 5 comments
Closed

an unknown tool name found in scoped lint: rustdoc #125

Oliboy50 opened this issue Jul 18, 2021 · 5 comments
Assignees
Labels

Comments

@Oliboy50
Copy link

What did you try to do?

I tried to run docker run --rm -it [-v ...] ekidd/rust-musl-builder cargo build --release on a project which depends on the official AWS SDK for Rust

What happened?

Compiling smithy-client v0.1.0 (https://github.com/awslabs/aws-sdk-rust?tag=v0.0.10-alpha#abe0ae57)
error[E0710]: an unknown tool name found in scoped lint: `rustdoc::all`
 --> /home/rust/.cargo/git/checkouts/aws-sdk-rust-be00ef1d3f696844/abe0ae5/sdk/smithy-client/src/lib.rs:9:5
  |
9 |     rustdoc::all,
  |     ^^^^^^^
error[E0710]: an unknown tool name found in scoped lint: `rustdoc::private_doc_tests`
  --> /home/rust/.cargo/git/checkouts/aws-sdk-rust-be00ef1d3f696844/abe0ae5/sdk/smithy-client/src/lib.rs:18:9
   |
18 | #[allow(rustdoc::private_doc_tests)]
   |         ^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0710`.
error: could not compile `smithy-client`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

What did you hope to happen?

Compiling works without error... I think it misses some "rustdoc" dependencies for that (maybe using some rustup component add ... commands or something), but I can't tell which one...

All I can say is that I am able to run cargo check on MacOS with a default rustup installation 🤷

Additional information

I created an issue on AWS side too: awslabs/aws-sdk-rust#156 ... because I can't tell who's wrong in this story

@Oliboy50
Copy link
Author

Is it missing some rustdoc component here: https://github.com/emk/rust-musl-builder/blob/master/Dockerfile#L141-L149

@Oliboy50
Copy link
Author

it seems that you just need to update the Rust version to 1.52.0 to fix my issue

because these rustdoc:: stuff was added in 1.52.0

@Oliboy50
Copy link
Author

so #122 or #123 should fix this 🤞

@emk
Copy link
Owner

emk commented Dec 16, 2021

This is blocked on #126. Thank you for reporting the issue!

@emk emk closed this as completed Dec 16, 2021
@emk
Copy link
Owner

emk commented Dec 23, 2021

We now have up-to-date nightly builds using GitHub CI! Thank you to everyone for the encouragement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants