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

Change rustdoc to test code blocks by default #12298

Merged
merged 2 commits into from
Feb 16, 2014

Conversation

alexcrichton
Copy link
Member

It's too easy to forget the rust tag to test something.

Closes #11698

It's too easy to forget the `rust` tag to have a code example tested, and it's
far more common to have testable code than untestable code.

This alters rustdoc to have only two directives, `ignore` and `should_fail`. The
`ignore` directive ignores the code block entirely, and the `should_fail`
directive has been fixed to only fail the test if the code execution fails, not
also compilation.
@brson
Copy link
Contributor

brson commented Feb 16, 2014

😹

bors added a commit that referenced this pull request Feb 16, 2014
It's too easy to forget the `rust` tag to test something.

Closes #11698
@bors bors closed this Feb 16, 2014
@bors bors merged commit e72ddbd into rust-lang:master Feb 16, 2014
@alexcrichton alexcrichton deleted the rustdoc-testing branch February 19, 2014 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rustdoc's should_fail isn't very useful
4 participants