-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: add --deny-doctest-warnings option #21316
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Collaboration with @rylev!
02d2c06
to
11f1b9b
Compare
Do you mind trying to turn this on for the in-tree doc tests as well? It looks like these are the lines to edit:
There's a chance that with the current state of the tree there will be a great number of warnings. If so we'll have to decide how to deal with them. |
@alexcrichton What do you think of this command-line flag and having to support it indefinitely? |
I'll give it a shot! |
e2c73ea
to
b06e40a
Compare
Thanks for the pointers, @brson!
b06e40a
to
f5f85e6
Compare
It is done. 🎐 |
Would it be possible to use the same The options would have to be documented, however, as only applying to doctests rather than documentation in general. |
@alexcrichton Sure thing. |
@alexcrichton Oh, I didn't notice you said "options" the first time. Should I just hardcode |
I would probably add flags for all of |
Closing due to inactivity, but feel free to reopen with a rebase! |
Collaboration with @rylev! Addresses #20787.
We kind of brute forced this flag into the call path for
maketest
, so we're soliciting better designs 👊Also, we're wondering if we should turn this into a generic
-D
option, like @brson was saying. What would that look like? Would we have to implement all four flags (W, A, D, F)?