rust/src/test
bors ee1474acc4 Auto merge of #58972 - QuietMisdreavus:intra-doc-link-imports, r=GuillaumeGomez
rustdoc: don't process `Crate::external_traits` when collecting intra-doc links

Part of https://github.com/rust-lang/rust/issues/58745, closes https://github.com/rust-lang/rust/pull/58917

The `collect-intra-doc-links` pass keeps track of the modules it recurses through as it processes items. This is used to know what module to give the resolver when looking up links. When looking through the regular items of the crate, this works fine, but the `DocFolder` trait as written doesn't just process the main crate hierarchy - it also processes the trait items in the `external_traits` map. This is useful for other passes (so they can strip out `#[doc(hidden)]` items, for example), but here it creates a situation where we're processing items "outside" the regular module hierarchy. Since everything in `external_traits` is defined outside the current crate, we can't fall back to finding its module scope like we do with local items.

Skipping this collection saves us from emitting some spurious warnings. We don't even lose anything by skipping it, either - the docs loaded from here are only ever rendered through `html::render::document_short` which strips any links out, so the fact that the links haven't been loaded doesn't matter. Hopefully this removes most of the remaining spurious resolution warnings from intra-doc links.

r? @GuillaumeGomez
2019-04-11 08:48:26 +00:00
..
assembly Introduce assembly tests 2019-02-27 23:33:05 +01:00
auxiliary
codegen Rollup merge of #59639 - cuviper:ignore-uninhabited, r=eddyb 2019-04-04 15:09:04 +02:00
codegen-units
compile-fail Future-proof the Futures API 2019-04-05 15:03:33 -07:00
debuginfo Rollup merge of #59380 - philipc:thinlto-variant, r=michaelwoerister 2019-03-30 14:14:53 +01:00
incremental Update tests 2019-03-30 18:43:26 +01:00
mir-opt Fixes for shallow borrows 2019-03-31 15:14:50 +01:00
pretty rustc: pass Option<&Substs> and Namespace around in ty::item_path. 2019-03-15 13:25:10 +02:00
run-fail Use the correct state for poisoning a generator 2019-03-03 20:34:26 +00:00
run-make Introduce assembly tests 2019-02-27 23:33:05 +01:00
run-make-fulldeps Add regression test for #59137. 2019-04-05 11:32:45 +02:00
run-pass Auto merge of #59119 - cramertj:cx-back, r=withoutboats 2019-04-07 09:48:12 +00:00
run-pass-fulldeps reduce repetition in librustc(_lint) wrt. impl LintPass 2019-04-03 23:37:31 +02:00
run-pass-valgrind
rustdoc Auto merge of #58972 - QuietMisdreavus:intra-doc-link-imports, r=GuillaumeGomez 2019-04-11 08:48:26 +00:00
rustdoc-js Move rustdoc-js testing into compiletest 2019-02-28 18:08:48 +01:00
rustdoc-js-std Rename rustdoc js test suites 2019-02-25 17:46:06 +01:00
rustdoc-ui compiletest: make path normalization smarter 2019-03-25 01:06:45 -04:00
rustfix tests: Do not use -Z parse-only, continue compilation to test recovery 2019-01-06 22:20:46 +03:00
ui Only run SIMD tests on x86 2019-04-07 21:46:39 +02:00
ui-fulldeps Rollup merge of #59669 - Centril:lint-pass-macro, r=oli-obk 2019-04-04 01:49:12 +02:00
COMPILER_TESTS.md