Skip to content

Getting intra_doc_link_resolution_failure warnings from std when documenting winapi #54423

Closed
@retep998

Description

@retep998
> cargo doc --all-features
   Compiling winapi v0.3.6 (C:\Users\Peter\Code\winapi-rs)
 Documenting winapi v0.3.6 (C:\Users\Peter\Code\winapi-rs)
warning: `[DefaultHasher::new]` cannot be resolved, ignoring it...
     |
     = note: #[warn(intra_doc_link_resolution_failure)] on by default
     = note: the link appears in this line:

              Creates a new `DefaultHasher` using [`new`][DefaultHasher::new].
                                                          ^^^^^^^^^^^^^^^^^^
     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[DefaultHasher::new]` cannot be resolved, ignoring it...
     |
     = note: the link appears in this line:

              Creates a new `DefaultHasher` using [`new`][DefaultHasher::new].
                                                          ^^^^^^^^^^^^^^^^^^
     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[RwLock::new]` cannot be resolved, ignoring it...
    |
    = note: the link appears in this line:

             This is equivalent to [`RwLock::new`].
                                    ^^^^^^^^^^^^^
    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[String]` cannot be resolved, ignoring it...
    |
    = note: the link appears in this line:

             Converts a [`String`] into a [`OsString`].
                         ^^^^^^^^
    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[OsString]` cannot be resolved, ignoring it...
    |
    = note: the link appears in this line:

             Converts a [`String`] into a [`OsString`].
                                           ^^^^^^^^^^
    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[Mutex::new]` cannot be resolved, ignoring it...
    |
    = note: the link appears in this line:

             This is equivalent to [`Mutex::new`].
                                    ^^^^^^^^^^^^
    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[Seek::seek_relative]` cannot be resolved, ignoring it...
    |
    = note: the link appears in this line:

             To seek without discarding the internal buffer, use [`Seek::seek_relative`].
                                                                  ^^^^^^^^^^^^^^^^^^^^^
    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[Weak]` cannot be resolved, ignoring it...
    |
    = note: the link appears in this line:

             [`Weak`], so we `drop` the inner value.
              ^^^^^^
    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[Weak]` cannot be resolved, ignoring it...
    |
    = note: the link appears in this line:

             [`Weak`], so we `drop` the inner value.
              ^^^^^^
    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[Weak::upgrade]` cannot be resolved, ignoring it...
     |
     = note: the link appears in this line:

              it. Calling [`upgrade`][Weak::upgrade] on the return value always gives [`None`].
                                      ^^^^^^^^^^^^^
     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[Weak::upgrade]` cannot be resolved, ignoring it...
     |
     = note: the link appears in this line:

              Calling [`upgrade`][Weak::upgrade] on the return value always
                                  ^^^^^^^^^^^^^
     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

warning: `[String::push_str]` cannot be resolved, ignoring it...
     |
     = note: the link appears in this line:

              This has the same behavior as the [`push_str`][String::push_str] method.
                                                             ^^^^^^^^^^^^^^^^
     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`

    Finished dev [unoptimized + debuginfo] target(s) in 2m 05s
> rustc -vV
rustc 1.30.0-nightly (cb6d2dfa8 2018-09-16)
binary: rustc
commit-hash: cb6d2dfa8923902b0992a1522dc4a45a9d3ba690
commit-date: 2018-09-16
host: x86_64-pc-windows-msvc
release: 1.30.0-nightly
LLVM version: 8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions