rust/compiler
Nicholas Nethercote 4225a1e186 Don't hash lints differently to non-lints.
`Diagnostic::keys`, which is used for hashing and equating diagnostics,
has a surprising behaviour: it ignores children, but only for lints.
This was added in #88493 to fix some duplicated diagnostics, but it
doesn't seem necessary any more.

This commit removes the special case and only four tests have changed
output, with additional errors. And those additional errors aren't
exact duplicates, they're just similar. For example, in
src/tools/clippy/tests/ui/same_name_method.rs we currently have this
error:
```
error: method's name is the same as an existing method in a trait
  --> $DIR/same_name_method.rs:75:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^
   |
note: existing `foo` defined here
  --> $DIR/same_name_method.rs:79:9
   |
LL |         impl T1 for S {}
   |         ^^^^^^^^^^^^^^^^
```
and with this change we also get this error:
```
error: method's name is the same as an existing method in a trait
  --> $DIR/same_name_method.rs:75:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^
   |
note: existing `foo` defined here
  --> $DIR/same_name_method.rs:81:9
   |
LL |         impl T2 for S {}
   |         ^^^^^^^^^^^^^^^^
```
I think printing this second argument is reasonable, possibly even
preferable to hiding it. And the other cases are similar.
2024-01-31 08:25:29 +11:00
..
rustc
rustc_abi
rustc_arena
rustc_ast
rustc_ast_lowering Rollup merge of #120428 - petrochenkov:somehir2, r=compiler-errors 2024-01-29 12:56:54 +00:00
rustc_ast_passes Stop using String for error codes. 2024-01-29 07:41:41 +11:00
rustc_ast_pretty
rustc_attr Stop using String for error codes. 2024-01-29 07:41:41 +11:00
rustc_baked_icu_data
rustc_borrowck Rollup merge of #120488 - nnethercote:diag-lifetimes, r=oli-obk 2024-01-30 11:19:20 +01:00
rustc_builtin_macros Rollup merge of #120342 - oli-obk:track_errors6, r=nnethercote 2024-01-30 16:57:49 +01:00
rustc_codegen_cranelift
rustc_codegen_gcc Remove the lifetime from DiagnosticArgValue. 2024-01-30 18:46:06 +11:00
rustc_codegen_llvm add missing potential_query_instability for keys and values in hashmap 2024-01-30 12:43:10 +08:00
rustc_codegen_ssa Rollup merge of #120485 - chenyukang:yukang-add-query-instability-check, r=michaelwoerister 2024-01-30 16:57:51 +01:00
rustc_const_eval Rollup merge of #120488 - nnethercote:diag-lifetimes, r=oli-obk 2024-01-30 11:19:20 +01:00
rustc_data_structures
rustc_driver
rustc_driver_impl Stop using String for error codes. 2024-01-29 07:41:41 +11:00
rustc_error_codes Stop using String for error codes. 2024-01-29 07:41:41 +11:00
rustc_error_messages
rustc_errors Don't hash lints differently to non-lints. 2024-01-31 08:25:29 +11:00
rustc_expand Rollup merge of #120342 - oli-obk:track_errors6, r=nnethercote 2024-01-30 16:57:49 +01:00
rustc_feature
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir hir: Use InferArg in ArrayLen::Infer 2024-01-28 02:04:39 +03:00
rustc_hir_analysis Rollup merge of #120400 - estebank:bound-error-cleanup, r=oli-obk 2024-01-30 11:19:15 +01:00
rustc_hir_pretty hir: Use InferArg in ArrayLen::Infer 2024-01-28 02:04:39 +03:00
rustc_hir_typeck Rollup merge of #120485 - chenyukang:yukang-add-query-instability-check, r=michaelwoerister 2024-01-30 16:57:51 +01:00
rustc_incremental
rustc_index Auto merge of #120024 - Mark-Simulacrum:fast-union-merge, r=cjgillot 2024-01-27 22:26:37 +00:00
rustc_index_macros
rustc_infer Rollup merge of #120342 - oli-obk:track_errors6, r=nnethercote 2024-01-30 16:57:49 +01:00
rustc_interface
rustc_lexer
rustc_lint add missing potential_query_instability for keys and values in hashmap 2024-01-30 12:43:10 +08:00
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros Rollup merge of #120475 - Nilstrieb:cargo-build-my-a-, r=michaelwoerister 2024-01-30 16:57:50 +01:00
rustc_metadata Remove the lifetime from DiagnosticArgValue. 2024-01-30 18:46:06 +11:00
rustc_middle Rollup merge of #120293 - estebank:issue-102629, r=nnethercote 2024-01-30 16:57:47 +01:00
rustc_mir_build Rollup merge of #120488 - nnethercote:diag-lifetimes, r=oli-obk 2024-01-30 11:19:20 +01:00
rustc_mir_dataflow
rustc_mir_transform Remove the lifetime from DiagnosticArgValue. 2024-01-30 18:46:06 +11:00
rustc_monomorphize
rustc_next_trait_solver
rustc_parse Rollup merge of #120460 - nnethercote:fix-120397, r=compiler-errors 2024-01-30 11:19:19 +01:00
rustc_parse_format
rustc_passes Rollup merge of #118533 - chenyukang:yukang-fix-118455, r=petrochenkov 2024-01-30 16:57:46 +01:00
rustc_pattern_analysis Stop using derivative in rustc_pattern_analysis 2024-01-27 14:21:01 +02:00
rustc_privacy Stop using String for error codes. 2024-01-29 07:41:41 +11:00
rustc_query_impl
rustc_query_system Stop using String for error codes. 2024-01-29 07:41:41 +11:00
rustc_resolve Rollup merge of #118533 - chenyukang:yukang-fix-118455, r=petrochenkov 2024-01-30 16:57:46 +01:00
rustc_serialize
rustc_session Remove the lifetime from DiagnosticArgValue. 2024-01-30 18:46:06 +11:00
rustc_smir
rustc_span Rollup merge of #120434 - fmease:revert-speeder, r=petrochenkov 2024-01-30 16:57:49 +01:00
rustc_symbol_mangling Auto merge of #118636 - h1467792822:dev, r=michaelwoerister 2024-01-27 02:32:30 +00:00
rustc_target Revert "Add the wasm32-wasi-preview2 target" 2024-01-28 02:02:50 +01:00
rustc_trait_selection Rollup merge of #120485 - chenyukang:yukang-add-query-instability-check, r=michaelwoerister 2024-01-30 16:57:51 +01:00
rustc_traits
rustc_transmute
rustc_ty_utils Stop using String for error codes. 2024-01-29 07:41:41 +11:00
rustc_type_ir
stable_mir