Skip to content

Intra-doc links do not resolve for value keywords #74515

Closed
@jyn514

Description

warning: `[true]` cannot be resolved, ignoring it.
 --> prim.rs:1:6
  |
1 | /// [`true`] and [`bool`]
  |      ^^^^^^ cannot be resolved, ignoring

The bug is here:

fn is_primitive(path_str: &str, ns: Namespace) -> Option<Res> {

It only checks for types, not for values.

I opened an issue because I'm not quite sure how to fix it: Res has PrimTy but doesn't seem to have a place for keywords in the value namespace.

Originally posted by @jyn514 in #73618

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-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