-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Don't pass doctest feature by default #65190
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
Don't pass doctest feature by default #65190
Conversation
14d6281
to
916fdfc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with those minor issues fixed.
|
||
#![feature(cfg_doctest)] | ||
|
||
// Make sure `cfg(doctest)` is not set when finding doctests but not inside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Make sure `cfg(doctest)` is not set when finding doctests but not inside | |
// Make sure `cfg(doctest)` is set when finding doctests but not inside |
src/librustdoc/test.rs
Outdated
@@ -64,6 +64,9 @@ pub fn run(options: Options) -> i32 { | |||
|
|||
let mut cfgs = options.cfgs.clone(); | |||
cfgs.push("rustdoc".to_owned()); | |||
if options.should_test { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the options.should_test
check here because it will always be true
in this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah indeed, good catch!
916fdfc
to
3e376f5
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 3e376f5 has been approved by |
⌛ Testing commit 3e376f5 with merge 9ec7904c40eade0beab9a1db174a2a8cb7da7c3b... |
@bors retry yielding to rollup |
⌛ Testing commit 3e376f5 with merge 2e1c9c662a46428afca61c8e3e17e54c39266032... |
@bors retry |
This comment has been minimized.
This comment has been minimized.
⌛ Testing commit 3e376f5 with merge 6eacf267df3cf728f32b94f8fbaf206cc76cc62b... |
@bors retry |
…fault, r=Mark-Simulacrum Don't pass doctest feature by default As asked in #63803 (comment). r? @QuietMisdreavus
☀️ Test successful - checks-azure |
As asked in #63803 (comment).
r? @QuietMisdreavus