diff options
author | bors <bors@rust-lang.org> | 2022-04-05 04:39:34 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-04-05 04:39:34 +0000 |
commit | 949b98cab8a186b98bf87e64374b8d0848c55271 (patch) | |
tree | 53bf1e67c7f27b559b81410fa79086525a0426a0 /library/std/src/sys/unix/stack_overflow.rs | |
parent | a22cf2af0510b3ec4cbb19c3de11d3d8291349d9 (diff) | |
parent | f5ee822098580f4e99bc0c710427727fe9df802c (diff) | |
download | rust-949b98cab8a186b98bf87e64374b8d0848c55271.tar.gz |
Auto merge of #95337 - petrochenkov:doclink3, r=camelid
rustdoc: Fix resolution of `crate`-relative paths in doc links
Resolve `crate::foo` paths transparently to rustdoc, so their resolution no longer affects diagnostics and modules used for determining traits in scope.
The proper solution is to account for the current `module_id`/`parent_scope` in `fn resolve_crate_root`, but it's a slightly larger compiler changes. This PR moves the code closer to it, but keeps it rustdoc-specific.
Fixes https://github.com/rust-lang/rust/issues/78696
Fixes https://github.com/rust-lang/rust/issues/94924
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions