Skip to content

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

Closed
@wedsonaf

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.

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