rust/compiler/rustc_resolve/src
bors 949b98cab8 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
2022-04-05 04:39:34 +00:00
..
late Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
access_levels.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
build_reduced_graph.rs Remember mutability in DefKind::Static. 2022-03-29 18:50:52 +02:00
check_unused.rs suggest adding a #[cfg(test)] to test modules 2021-12-16 11:48:58 +09:00
def_collector.rs ast: Always keep a NodeId in ast::Crate 2022-01-05 17:09:37 +08:00
diagnostics.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
imports.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00
late.rs format cond 2022-04-04 12:49:02 +09:00
lib.rs Auto merge of #95337 - petrochenkov:doclink3, r=camelid 2022-04-05 04:39:34 +00:00
macros.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00