rust/tests
Matthias Krüger 6c0e803afa
Rollup merge of #150172 - Urgau:rustdoc-remap-fixes, r=GuillaumeGomez
Handle remapped paths correctly when generating "Source" links

Fixes https://github.com/rust-lang/rust/issues/150100.

This PR fixes a regression introduced by [#149709](https://github.com/rust-lang/rust/issues/149709), I was overzealous in my changes (https://github.com/rust-lang/rust/pull/149709/changes#diff-e1cf7ef2fb411d24980cd4cbea1e867cc36029e9496e1ceca64cfb6a0e3510f6) and accidentally changed the behavior of `rustdoc` in the presence of remapped, to simply reject them instead of handling them.

With this PR remapped paths are handled correctly, in a similar way as it was before.

~~I added a run-make test to make sure we don't regress it again, a simple `rustdoc` test in not sufficient as `rustdoc` is not called on the auxiliary crate. It's not pretty but it works.~~ https://github.com/rust-lang/rust/pull/150172#issuecomment-3676762399

rustdoc doesn't have any handling for `--remap-path-scope`, so I used the `MACRO` scope (it was already used [elsewhere](b889870082/src/librustdoc/clean/types.rs (L154)).

cf. https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/source.20links.20missing.20for.20nightly.20std.20docs
2025-12-20 13:46:01 +01:00
..
assembly-llvm Nvptx: Use llbc as default linker 2025-12-19 21:39:48 +01:00
auxiliary Rework c_variadic 2025-12-04 10:51:34 +01:00
codegen-llvm Rollup merge of #149788 - Sa4dUs:offload-cleanup, r=ZuseZ4 2025-12-19 23:38:57 +01:00
codegen-units Don't treat asserts as a call in cross-crate inlining 2025-12-18 19:12:09 -05:00
coverage Auto merge of #142821 - cjgillot:jump-threading-single, r=saethlin 2025-12-01 23:44:49 +00:00
coverage-run-rustdoc
crashes Mark crash 140011 as fixed 2025-12-17 20:47:48 +01:00
debuginfo debuginfo/macro-stepping test: extend comments 2025-12-01 22:32:36 +01:00
incremental Add unsafe to no_mangle incremental tests 2025-12-03 17:00:22 +01:00
mir-opt ExprUseVisitor: remove maybe_read_scrutinee 2025-12-17 20:47:47 +01:00
pretty Support attribute inheritance in delegation 2025-12-12 20:34:54 +03:00
run-make Rollup merge of #149994 - Flakebi:amdgpu-vectors, r=jieyouxu 2025-12-15 08:08:04 +01:00
run-make-cargo tests/run-make-cargo/same-crate-name-and-macro-name: New regression test 2025-12-17 11:21:27 +01:00
rustdoc Fix typo 2025-12-20 00:32:56 +01:00
rustdoc-gui Make implementors list visible only when filled 2025-12-10 16:18:22 +01:00
rustdoc-js Auto merge of #149370 - Zalathar:rollup-6fkk5x4, r=Zalathar 2025-11-27 07:30:25 +00:00
rustdoc-js-std std: Use more unix.rs code on WASI targets 2025-12-08 06:46:28 -08:00
rustdoc-json Add tests for doc(attribute = "...") attribute 2025-08-28 15:56:30 +02:00
rustdoc-ui Rollup merge of #149949 - JonathanBrouwer:error_cleanup, r=jdonszelmann 2025-12-14 20:04:56 +01:00
ui Auto merge of #150177 - matthiaskrgr:rollup-4cw3gdw, r=matthiaskrgr 2025-12-20 05:17:27 +00:00
ui-fulldeps Point at span within local macros even when error happens in nested external macro 2025-12-10 19:27:40 +00:00
COMPILER_TESTS.md