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

Cleanup some rustdoc code #52628

Merged
merged 10 commits into from
Aug 1, 2018
Merged

Commits on Jul 31, 2018

  1. Pull out nightly checking to edges

    Parsing the code block's LangString (```foo) previously checked itself
    to see if we were on nightly; that isn't the right place to do so. Move
    that check slightly outwards to better abstract LangString.
    
    (This is also an optimization as we avoid the costly environment
    variable load of RUSTC_BOOTSTRAP).
    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    0af5a6b View commit details
    Browse the repository at this point in the history
  2. Provide warnings for invalid code blocks in markdown files

    Previously we would only warn on Rust code but we can also do so when
    testing markdown (the diag::Handler is available).
    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    ad40e45 View commit details
    Browse the repository at this point in the history
  3. Provide test configuration through struct

    This is far more sound than passing many different arguments of the same
    type.
    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    de5cebd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    03e34f8 View commit details
    Browse the repository at this point in the history
  5. Further extract error code switch

    Removes dependency on UnstableFeatures from markdown rendering
    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    01d9555 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2216db9 View commit details
    Browse the repository at this point in the history
  7. Remove global derive_id and reset_ids functions

    Previously these functions relied on TLS but we can instead thread the
    relevant state through explicitly.
    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    7bea518 View commit details
    Browse the repository at this point in the history
  8. Cleanup highlighting code

    Removes some unused code and de-publicizes structs
    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    8e65a46 View commit details
    Browse the repository at this point in the history
  9. Add dyn to Write

    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    4cd0047 View commit details
    Browse the repository at this point in the history
  10. Fixup test case

    Mark-Simulacrum committed Jul 31, 2018
    Configuration menu
    Copy the full SHA
    0f680b3 View commit details
    Browse the repository at this point in the history