rust/src/test
bors 6e8452ee4f Auto merge of #43552 - petrochenkov:instab, r=jseyfried
resolve: Try to fix instability in import suggestions

cc https://github.com/rust-lang/rust/pull/42033

`lookup_import_candidates` walks module graph in DFS order and skips modules that were already visited (which is correct because there can be cycles).
However it means that if we visited `std::prelude::v1::Result::Ok` first, we will never visit `std::result::Result::Ok` because `Result` will be skipped as already visited (note: enums are also modules here), and otherwise, if we visited `std::result::Result::Ok` first, we will never get to `std::prelude::v1::Result::Ok`.
What child module of `std` (`prelude` or `result`) we will visit first, depends on randomized hashing, so we have instability in diagnostics.

With this patch modules' children are visited in stable order in `lookup_import_candidates`, this should fix the issue, but let's see what Travis will say.

r? @oli-obk
2017-08-01 06:05:34 +00:00
..
codegen std: Mark Layout::repeat as #[inline] 2017-07-29 09:03:06 -07:00
codegen-units Adapt cgu-partitioning tests to pre-trans symbol internalization. 2017-07-13 13:29:25 +02:00
compile-fail Auto merge of #43552 - petrochenkov:instab, r=jseyfried 2017-08-01 06:05:34 +00:00
compile-fail-fulldeps syntax: Capture a TokenStream when parsing items 2017-07-28 10:47:01 -07:00
debuginfo Pretty-printers tests: gdbr -> gdb 2017-06-09 18:51:28 +03:00
incremental Detect implicitly defined late bound lifetime parameters as well 2017-07-18 00:12:48 +03:00
mir-opt Update basic_assignment test to reflect small changes to codegen. 2017-06-12 13:06:42 +02:00
parse-fail Simplify parsing of paths 2017-07-27 22:59:34 +03:00
pretty
run-fail Add tests for issues with the E-needstest label 2017-07-25 12:23:16 +09:00
run-fail-fulldeps Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
run-make Make LLVMRustHasFeature more robust 2017-07-28 14:30:06 +00:00
run-pass save the subobligations as well 2017-07-30 11:07:28 -07:00
run-pass-fulldeps Update and fix a few tests 2017-06-26 02:08:14 +00:00
run-pass-valgrind Move unsized_tuple_coercion behind a feature gate. 2017-06-29 21:25:35 +09:00
rustdoc Add tests for issues with the E-needstest label 2017-07-25 12:23:16 +09:00
ui Auto merge of #43552 - petrochenkov:instab, r=jseyfried 2017-08-01 06:05:34 +00:00
ui-fulldeps Change some helps to suggestions 2017-07-17 10:03:37 +02:00
COMPILER_TESTS.md Merge ui/README.md into COMPILER_TESTS.md and describe how custom UI normalization works. 2017-07-11 16:57:53 +08:00