Skip to content

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

Merged

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez force-pushed the dont-pass-doctest-feature-by-default branch from 14d6281 to 916fdfc Compare October 8, 2019 08:26
@GuillaumeGomez
Copy link
Member Author

cc @ollie27 @Mark-Simulacrum

Copy link
Member

@ollie27 ollie27 left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 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

@@ -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 {
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah indeed, good catch!

@GuillaumeGomez GuillaumeGomez force-pushed the dont-pass-doctest-feature-by-default branch from 916fdfc to 3e376f5 Compare October 10, 2019 09:37
@GuillaumeGomez
Copy link
Member Author

@bors: r=Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Oct 10, 2019

📌 Commit 3e376f5 has been approved by Mark-Simulacrum

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 10, 2019
@bors
Copy link
Collaborator

bors commented Oct 11, 2019

⌛ Testing commit 3e376f5 with merge 9ec7904c40eade0beab9a1db174a2a8cb7da7c3b...

@tmandry
Copy link
Member

tmandry commented Oct 11, 2019

@bors retry yielding to rollup

@bors
Copy link
Collaborator

bors commented Oct 11, 2019

⌛ Testing commit 3e376f5 with merge 2e1c9c662a46428afca61c8e3e17e54c39266032...

@tmandry
Copy link
Member

tmandry commented Oct 11, 2019

@bors retry
have to r+ the rollup first...

@rust-highfive

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Oct 11, 2019

⌛ Testing commit 3e376f5 with merge 6eacf267df3cf728f32b94f8fbaf206cc76cc62b...

@tmandry
Copy link
Member

tmandry commented Oct 11, 2019

@bors retry

@bors
Copy link
Collaborator

bors commented Oct 12, 2019

⌛ Testing commit 3e376f5 with merge 152527f...

bors added a commit that referenced this pull request Oct 12, 2019
…fault, r=Mark-Simulacrum

Don't pass doctest feature by default

As asked in #63803 (comment).

r? @QuietMisdreavus
@bors
Copy link
Collaborator

bors commented Oct 12, 2019

☀️ Test successful - checks-azure
Approved by: Mark-Simulacrum
Pushing 152527f to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 12, 2019
@bors bors merged commit 3e376f5 into rust-lang:master Oct 12, 2019
@GuillaumeGomez GuillaumeGomez deleted the dont-pass-doctest-feature-by-default branch October 13, 2019 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants