-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Make rustdoc respect --error-format short
in doctests
#81675
Conversation
r? @ollie27 (rust-highfive has picked a reviewer for you, use r? to override) |
The job Click to see the possible cause of the failure (guessed by this bot)
|
--error-format short
--error-format short
in doctests
The other two (`human` and `json`) are already handled.
b452e75
to
360f8f8
Compare
Can you add a UI test for this in src/test/rustdoc-ui? |
r=me with CI passing (please use @bors delegate=poliorcetics |
✌️ @poliorcetics can now approve this pull request |
Should it be rolled up ? |
I don't think it should be marked rollup=always, no, since it has logic changes. It can still get rolled up if someone chooses to. @bors r+ |
📌 Commit 716d2cd has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#80011 (Stabilize `peekable_next_if`) - rust-lang#81580 (Document how `MaybeUninit<Struct>` can be initialized.) - rust-lang#81610 (BTreeMap: make Ord bound explicit, compile-test its absence) - rust-lang#81664 (Avoid a hir access inside get_static) - rust-lang#81675 (Make rustdoc respect `--error-format short` in doctests) - rust-lang#81753 (Never MIR inline functions with a different instruction set) - rust-lang#81795 (Small refactor with Iterator::reduce) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Pass the error message format to rustdoc - Goes with rust-lang/rust#81675. - Will help with rust-lang/rust#81662. This is my first PR to Cargo and I haven't finished reading the contributor guide yet, how should I add tests for this ? Did I had the code in the correct place ?
Note that this will not work with
cargo test
, only withrustdoc --test
, I'll have to modifycargo
as well.Fix #81662.
@rustbot label +T-rustdoc +A-doctests