rust/compiler
Ulrich Weigand 30fbfd5f05 Sort lint_groups in no_lint_suggestion
The no_lint_suggestion routine passes a vector of lint group names
to find_best_match_for_name.  That routine depends on the sort
order of its input vector, which matters in case multiple inputs
are at the same Levenshtein distance to the target name.

However, no_lint_suggestion currently just passes lint_groups.keys()
as input vector - this is sorted in hash value order, which is not
guaranteed to be stable, and in fact differs between big- and
little-endian host platforms, causing test failures on s390x.

To fix this, always sort the lint groups before using their names
as input to find_best_match_for_name.  In addition, deprecated
lint groups should never be suggested, so filter those out.

Fixes https://github.com/rust-lang/rust/issues/105379
2022-12-21 19:16:41 +01:00
..
rustc rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler 2022-10-02 17:49:36 +02:00
rustc_abi Auto merge of #105446 - erikdesjardins:vt-size, r=nikic 2022-12-18 22:01:39 +00:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast more clippy::complexity fixes 2022-12-15 00:09:10 +01:00
rustc_ast_lowering Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_ast_passes Allow impl ~const Trait opaque types 2022-12-15 11:26:15 +00:00
rustc_ast_pretty Auto merge of #105160 - nnethercote:rm-Lit-token_lit, r=petrochenkov 2022-12-12 05:16:50 +00:00
rustc_attr rustc_attr remove ref patterns 2022-12-06 14:45:58 +00:00
rustc_baked_icu_data Update crate documentation of rustc_baked_icu_data crate 2022-11-18 14:46:36 -08:00
rustc_borrowck Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_builtin_macros Rollup merge of #105870 - matthiaskrgr:useless_conv, r=oli-obk 2022-12-18 18:57:05 +01:00
rustc_codegen_cranelift Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14 2022-12-14 19:30:46 +01:00
rustc_codegen_gcc Auto merge of #105252 - bjorn3:codegen_less_pair_values, r=nagisa 2022-12-12 10:38:31 +00:00
rustc_codegen_llvm Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_codegen_ssa Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_const_eval Rollup merge of #105875 - matthiaskrgr:needless_borrowed_reference, r=oli-obk 2022-12-18 18:57:05 +01:00
rustc_data_structures more clippy::complexity fixes 2022-12-15 00:09:10 +01:00
rustc_driver compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_error_codes docs: add long error explanation for error E0320 2022-12-17 07:38:23 +13:00
rustc_error_messages Resolve various merge conflicts 2022-12-17 19:08:25 +01:00
rustc_errors more clippy::complexity fixes 2022-12-15 00:09:10 +01:00
rustc_expand don't restuct references just to reborrow 2022-12-18 17:04:32 +01:00
rustc_feature Auto merge of #102318 - Amanieu:default_alloc_error_handler, r=oli-obk 2022-12-16 21:08:45 +00:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_hir minor code cleanups 2022-12-12 19:49:53 +01:00
rustc_hir_analysis Rollup merge of #105873 - matthiaskrgr:clippy_fmt, r=Nilstrieb 2022-12-18 23:03:07 +01:00
rustc_hir_pretty more clippy::complexity fixes 2022-12-15 00:09:10 +01:00
rustc_hir_typeck Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_incremental don't restuct references just to reborrow 2022-12-18 17:04:32 +01:00
rustc_index minor code cleanups 2022-12-12 19:49:53 +01:00
rustc_infer Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_interface don't clone Copy types 2022-12-18 14:25:55 +01:00
rustc_lexer minor code cleanups 2022-12-12 19:49:53 +01:00
rustc_lint Sort lint_groups in no_lint_suggestion 2022-12-21 19:16:41 +01:00
rustc_lint_defs Make the test actually emit the future incompat lint 2022-12-15 16:54:00 +00:00
rustc_llvm llvm-wrapper: adapt for LLVM API changes 2022-12-11 09:14:50 +00:00
rustc_log Use IsTerminal in rustc_log 2022-10-16 15:10:40 +01:00
rustc_macros use &str / String literals instead of format!() 2022-12-18 16:17:46 +01:00
rustc_metadata Rollup merge of #105869 - matthiaskrgr:clone_on_copy, r=compiler-errors 2022-12-18 23:03:07 +01:00
rustc_middle Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_mir_build Rollup merge of #105873 - matthiaskrgr:clippy_fmt, r=Nilstrieb 2022-12-18 23:03:07 +01:00
rustc_mir_dataflow Auto merge of #103880 - b-naber:field-ty-mir, r=lcnr 2022-12-16 12:47:49 +00:00
rustc_mir_transform Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_monomorphize clippy::complexity fixes 2022-12-19 00:04:28 +01:00
rustc_parse Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_parse_format Assert size of rustc_parse_format::Piece<'_> 2022-12-08 22:50:39 +00:00
rustc_passes Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_plugin_impl Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_privacy Prevent the creation of TraitRef without dedicated methods 2022-12-14 15:36:39 +00:00
rustc_query_impl don't clone Copy types 2022-12-18 14:25:55 +01:00
rustc_query_system Auto merge of #105233 - mejrs:always_eager, r=estebank 2022-12-14 16:16:50 +00:00
rustc_resolve Rollup merge of #105873 - matthiaskrgr:clippy_fmt, r=Nilstrieb 2022-12-18 23:03:07 +01:00
rustc_save_analysis compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_serialize compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_session Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span Shorten trimmed display of closures 2022-12-15 11:13:44 -08:00
rustc_symbol_mangling clippy::complexity fixes 2022-12-19 00:04:28 +01:00
rustc_target more clippy::complexity fixes 2022-12-15 00:09:10 +01:00
rustc_trait_selection Rollup merge of #105882 - compiler-errors:issue-105832, r=jackh726 2022-12-19 14:41:36 +05:30
rustc_traits Ensure no one constructs AliasTys themselves 2022-12-14 15:36:39 +00:00
rustc_transmute Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_ty_utils Rollup merge of #105623 - compiler-errors:generator-type-size-fix, r=Nilstrieb 2022-12-15 12:46:00 +01:00
rustc_type_ir more clippy::complexity fixes 2022-12-15 00:09:10 +01:00