rust/src/test
Nicholas Nethercote 75b67c2d5e Fix symbol ordering for confusable idents detection.
Confusable idents detection uses a type `BTreeMap<Symbol, Span>`. This is
highly dubious given that `Symbol` doesn't guarantee a meaningful order. (In
practice, it currently gives an order that mostly matches source code order.)

As a result, changes in `Symbol` representation make the
`lint-confusable-idents.rs` test fail, because this error message:

> identifier pair considered confusable between `s` and `s`

is changed to this:

> identifier pair considered confusable between `s` and `s`

and the corresponding span pointers get swapped erroneously, leading to
an incorrect "previous identifier" label.

This commit sorts the relevant symbols by span before doing the checking,
which ensures that the ident that appears first in the code will be mentioned
first in the message. The commit also extends the test slightly to be more
thorough.
2020-08-10 07:12:59 +10:00
..
assembly compiletest: Support ignoring tests requiring missing LLVM components 2020-08-02 20:35:24 +03:00
auxiliary
codegen Auto merge of #74533 - nikic:issue-74425, r=eddyb 2020-08-08 13:33:53 +00:00
codegen-units instance: polymorphize FnDef substs 2020-08-07 18:41:45 +01:00
compile-fail rustc_metadata: Make crate loading fully speculative 2020-07-18 14:06:04 +04:00
debuginfo Rollup merge of #75224 - Aaron1011:fix/function-arguments-naked, r=Amanieu 2020-08-08 11:36:02 +09:00
incremental Share serialization optimization between incr and metadata 2020-07-26 18:37:03 -04:00
mir-opt Auto merge of #74821 - oli-obk:const_eval_read_uninit_fast_path, r=wesleywiser 2020-08-07 15:28:07 +00:00
pretty tests: add regression test for #74745 2020-08-02 15:33:06 +01:00
run-make proc_macro: Add API for tracked access to environment variables 2020-07-26 13:37:37 +03:00
run-make-fulldeps intra_doc_resolution_failures -> broken_intra_doc_links 2020-07-30 10:38:55 -07:00
run-pass-valgrind
rustdoc Rollup merge of #75237 - nbdd0121:rustdoc, r=jyn514 2020-08-08 11:36:03 +09:00
rustdoc-js rustdoc: Fix doc aliases with crate filtering 2020-06-23 09:27:37 +01:00
rustdoc-js-std
rustdoc-ui Auto merge of #73842 - euclio:doctest-expn, r=GuillaumeGomez 2020-08-07 11:38:17 +00:00
rustfix
ui Fix symbol ordering for confusable idents detection. 2020-08-10 07:12:59 +10:00
ui-fulldeps Eliminate the SessionGlobals from librustc_ast. 2020-08-08 12:03:42 +10:00
COMPILER_TESTS.md