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

Recognize private_intra_doc_links as a lint #78114

Merged
merged 2 commits into from
Nov 9, 2020
Merged

Commits on Nov 5, 2020

  1. Recognize private_intra_doc_links as a lint

    Previously, trying to allow this would give another error!
    
    ```
    warning: unknown lint: `private_intra_doc_links`
     --> private.rs:1:10
      |
    1 | #![allow(private_intra_doc_links)]
      |          ^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `broken_intra_doc_links`
      |
      = note: `#[warn(unknown_lints)]` on by default
    
    warning: public documentation for `DocMe` links to private item `DontDocMe`
     --> private.rs:2:11
      |
    2 | /// docs [DontDocMe]
      |           ^^^^^^^^^ this item is private
      |
      = note: `#[warn(private_intra_doc_links)]` on by default
      = note: this link will resolve properly if you pass `--document-private-items`
    ```
    jyn514 committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    eed0ceb View commit details
    Browse the repository at this point in the history
  2. Add PRIVATE_INTRA_DOC_LINKS to rustdoc special-casing

    This is really starting to get out of hand. Rustdoc should instead allow
    all lints in the rustdoc lint group.
    jyn514 committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    47b21b8 View commit details
    Browse the repository at this point in the history