- Fix broken handling of primitive associated items - Remove fragment hack Fixes 83083 - more logging - Update CrateNum hacks The CrateNum has no relation to where in the dependency tree the crate is, only when it's loaded. Explicitly special-case core instead of assuming it will be the first DefId. - Update and add tests - Cache calculation of primitive locations This could possibly be avoided by passing a Cache into collect_intra_doc_links; but that's a much larger change, and doesn't seem valuable other than for this.
6 lines
238 B
Rust
6 lines
238 B
Rust
#![no_std]
|
|
|
|
/// Link to [intra-doc link][u8]
|
|
// @has 'no_std_primitive/fn.foo.html' '//a[@href="{{channel}}/core/primitive.u8.html"]' 'intra-doc link'
|
|
// @has - '//a[@href="{{channel}}/core/primitive.u8.html"]' 'u8'
|
|
pub fn foo() -> u8 {}
|