Skip to content

Warnings when running rustdoc on rust/kernel/traits.rs #307

Closed

Description

@wedsonaf

I'm getting the following warnings when running make rustdoc.

This is also visible on CI (example here), so it's not a configuration issue on my side

warning: unresolved link to `Box`
  --> rust/kernel/traits.rs:11:68
   |
11 | /// Common pointer types which implement a `pin()` method include [`Box`], [`Arc`] and [`Rc`].
   |                                                                    ^^^^^ no item named `Box` in scope
   |
   = note: `#[warn(broken_intra_doc_links)]` on by default
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: unresolved link to `Rc`
  --> rust/kernel/traits.rs:11:89
   |
11 | /// Common pointer types which implement a `pin()` method include [`Box`], [`Arc`] and [`Rc`].
   |                                                                                         ^^^^ no item named `Rc` in scope
   |
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: 2 warnings emitted

@TheSven73 it looks like this was introduced by 02138fd.

Activity

  1. added
    • docsRelated to `Documentation/rust/`, `samples/`, generated docs, doctests, typos...
    on May 28, 2021
  2. TheSven73 commented on May 28, 2021

    @TheSven73
    Collaborator

    I'll fix. Should we let the CI error out on rustdoc warnings?

  3. wedsonaf commented on May 28, 2021

    @wedsonaf
    Author

    I'll fix.

    Thanks!

    Should we let the CI error out on rustdoc warnings?

    I think we should, in fact I was surprised to find out that we don't.

  4. TheSven73 commented on May 28, 2021

    @TheSven73
    Collaborator

    I think we should, in fact I was surprised to find out that we don't.

    Same. The CI succeeded, so I didn't even look at rustdoc's output.
    I'll add rustdoc err-on-warn to the fix PR.

  5. TheSven73 commented on May 28, 2021

    @TheSven73
    Collaborator

    Hm. There are plenty of other rustdoc warnings, not only coming from traits.rs. The amount and types of warnings appear to change depending on the platform being built.

  6. ojeda commented on May 28, 2021

    @ojeda
    Member

    I think we should, in fact I was surprised to find out that we don't.

    IIRC, I did not enable it right away because we did not have yet docs for all public bits etc. But yes, we definitely want to enable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers• docsRelated to `Documentation/rust/`, `samples/`, generated docs, doctests, typos...

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions