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

Expose all OS-specific modules in libstd doc. #43348

Merged
merged 4 commits into from
Aug 13, 2017

Commits on Aug 10, 2017

  1. Strip out function implementation when documenting.

    This prevents compilation failure we want to document a platform-specific
    module. Every function is replaced by `loop {}` using the same construct
    as `--unpretty everybody_loops`.
    
    Note also a workaround to rust-lang#43636 is included: `const fn` will retain their
    bodies, since the standard library has quite a number of them.
    kennytm committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    8f935fb View commit details
    Browse the repository at this point in the history
  2. Implemented #[doc(cfg(...))].

    This attribute has two effects:
    
    1. Items with this attribute and their children will have the "This is
       supported on **** only" message attached in the documentation.
    
    2. The items' doc tests will be skipped if the configuration does not
       match.
    kennytm committed Aug 10, 2017
    Configuration menu
    Copy the full SHA
    a2b8886 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b4114eb View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2017

  1. Configuration menu
    Copy the full SHA
    3093bb8 View commit details
    Browse the repository at this point in the history