Closed
Description
I tried this code:
/// [std::primitive::i32::MAX]
pub fn f() {}
I expected to see this happen: Rustdoc links to https://doc.rust-lang.org/stable/std/primitive.i32.html#associatedconstant.MAX
Instead, this happened: Rustdoc gives an error:
warning: unresolved link to `std::primitive::i32::MAX`
--> prim-assoc.rs:1:6
|
1 | /// [std::primitive::i32::MAX]
| ^^^^^^^^^^^^^^^^^^^^^^^^ the builtin type `i32` has no associated item named `MAX`
|
= note: `#[warn(broken_intra_doc_links)]` on by default
The issue is
which does string comparison instead of going through resolve.Meta
rustdoc --version
: rustdoc 1.48.0-nightly (f68e08933 2020-09-19)