Skip to content

no_std crates do not link to primitives #73423

Description

@Manishearth
#![no_std]

// Link to [u8]
pub fn foo() -> u8 {}

The link in x()'s return type does not work. The intra-doc link on Foo does work, but that's because we hardcode the std in it, which should be fixed once this is.

Turns out that the "primitive type u8" only lives in std, see https://doc.rust-lang.org/nightly/std/index.html?search=u8

Activity

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

    C-bugCategory: This is a bug.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