Intra-doc links do not resolve for value keywords · Issue #74515 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@jyn514

Description

@jyn514

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