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

Commits on Feb 15, 2014

  1. Update rustdoc testing to test all code blocks

    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.
    alexcrichton committed Feb 15, 2014
    Configuration menu
    Copy the full SHA
    6667f90 View commit details
    Browse the repository at this point in the history
  2. Fix all code examples

    alexcrichton committed Feb 15, 2014
    5 Configuration menu
    Copy the full SHA
    e72ddbd View commit details
    Browse the repository at this point in the history