diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-06 21:26:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 21:26:11 +0100 |
commit | eb27b613b6a97123611b75168fc732c3818c8da5 (patch) | |
tree | 505e5c73be8b3d2fd9bc7fa5c772dafcfdae2c49 /tests/rustdoc-js-std/parser-errors.js | |
parent | 72d650f47a7c23d31e16f54d71f7356fbcd651f5 (diff) | |
parent | d5d1c5716747ded8ca9746be71e70cceeaa9f422 (diff) | |
download | rust-eb27b613b6a97123611b75168fc732c3818c8da5.tar.gz |
Rollup merge of #106466 - clubby789:relative-module-fix, r=notriddle
Fix rustdoc source code rendering for `#[path = "../path/to/mod.rs"]` links
Fixes #103517
While generating the location for modules source HTML to be saved at, a `..` path component appeared to be translated to `/up/`.
Additionally, while generating the navigation sidebar, `..` path components were ignored. This means that (as in the issue above), a *real* directory structure of:
```
sys/
unix/
mod.rs <-- contains #![path = "../unix/mod.rs]
cmath.rs
```
was rendered as:
```
sys/
unix/
mod.rs
unix/
cmath.rs <-- links to sys/unix/unix/cmath.rs.html, 404
```
While the *files* were stored as
```
sys/
unix/
mod.rs.html
up/
unix/
cmath.rs.html
```
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions