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

rustdoc regression: incorrect triple for crate #13893

Closed
farcaller opened this issue May 2, 2014 · 0 comments
Closed

rustdoc regression: incorrect triple for crate #13893

farcaller opened this issue May 2, 2014 · 0 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@farcaller
Copy link
Contributor

Given that rustc now tracks target triple used to build a crate, there must be a way to pass --target to rustdoc, otherwise it's impossible to generate documentation for cross-compiled library:

% rustdoc -o build/doc src/main.rs -L build
src/main.rs:35:1: 35:19 error: found incorrect triple for crate `core`
src/main.rs:35 extern crate core;
               ^~~~~~~~~~~~~~~~~~
src/main.rs:35:1: 35:19 note: expected triple of x86_64-apple-darwin
src/main.rs:35 extern crate core;
               ^~~~~~~~~~~~~~~~~~
src/main.rs:35:19: 35:19 note: crate `core` path #1, triple thumbv7m-linux-eabi: /Users/farcaller/src/zinc/build/libcore-caef0f5f-0.0.rlib
error: aborting due to previous error
task '<unnamed>' failed at '~Any', /Users/farcaller/temp/rust/src/libsyntax/diagnostic.rs:120
task '<main>' failed at 'called `Result::unwrap()` on an `Err` value: ~Any', /Users/farcaller/temp/rust/src/libstd/result.rs:528
arcnmx pushed a commit to arcnmx/rust that referenced this issue Jan 9, 2023
Complete record enum variants without parens when snippets are disabled

I didn't realize I only handled this for tuple variants in rust-lang#13805. This is the same change but for record variants.
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 27, 2025
Fixes rust-lang#12674, i.e., adds a lint to flag `Path`s printed with `{:?}`.

Nits are welcome.

changelog: Add `unnecessary_debug_formatting` lint
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

2 participants