rust/src/tools
Nadrieril be4f8e2758
Rollup merge of #120490 - nnethercote:Diagnostic-hashing, r=estebank
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.

r? `@estebank`
2024-01-31 12:10:52 +01:00
..
build-manifest rustc: implement support for riscv32im_risc0_zkvm_elf 2024-01-22 10:07:36 -08:00
build_helper rename github_repository to git_repository 2023-11-06 15:53:32 +01:00
bump-stage0 make x.py clippy download and use beta clippy 2023-12-16 15:24:59 -05:00
cargo@7bb7b53955 Update cargo 2024-01-23 13:35:15 -05:00
cargotest Don't ask for a specific branch in cargotest 2023-12-04 12:11:44 +02:00
clippy Rollup merge of #120490 - nnethercote:Diagnostic-hashing, r=estebank 2024-01-31 12:10:52 +01:00
collect-license-metadata Fix generate-copyright tool. 2023-11-27 11:03:53 +00:00
compiletest Remove support for no-system-llvm 2024-01-23 11:19:51 +01:00
coverage-dump Add tool src/tools/coverage-dump for use by some new coverage tests 2023-09-05 11:11:48 +10:00
error_index_generator Stop using String for error codes. 2024-01-29 07:41:41 +11:00
expand-yaml-anchors
generate-copyright Fix generate-copyright tool. 2023-11-27 11:03:53 +00:00
generate-windows-sys update paths in tools 2024-01-12 00:06:39 +01:00
html-checker
jsondocck jsondocck: bump jsonpath to 0.3, dropping few dup dependencies 2023-11-18 12:56:54 +03:00
jsondoclint rustdoc: Rename typedef to type alias in jsondoclint 2023-08-23 11:47:35 -07:00
linkchecker linkchecker: Remove unneeded FIXME about intra-doc links 2023-08-06 13:28:43 +02:00
lint-docs Update test for E0796 and static_mut_ref lint 2024-01-07 17:29:25 +03:00
lld-wrapper linker: Remove -Zgcc-ld option 2023-10-08 10:05:25 +03:00
miri Remove the lifetime from DiagnosticArgValue. 2024-01-30 18:46:06 +11:00
miropt-test-tools Don't allow .html files in tests/mir-opt/ 2024-01-16 17:48:31 +11:00
opt-dist Partial Revert: "Auto merge of #117018 - Kobzol:opt-dist-cargo-stage0" 2023-10-23 16:10:52 +02:00
remote-test-client use u64 to represent file size 2024-01-21 18:16:22 +03:00
remote-test-server use u64 to represent file size 2024-01-21 18:16:22 +03:00
replace-version-placeholder
rls Don't use serde-derive in the rls shim 2023-07-10 14:53:57 -07:00
rust-analyzer Rename the unescaping functions. 2024-01-25 12:28:11 +11:00
rust-demangler
rust-installer use /usr/bin/env bash instead of /bin/bash 2024-01-21 12:43:09 -05:00
rustbook
rustdoc
rustdoc-gui Improve display of parallel jobs in rustdoc-gui tester script 2023-10-16 20:16:08 +02:00
rustdoc-gui-test
rustdoc-js rustdoc-search: remove parallel searchWords array 2023-12-15 16:26:35 -07:00
rustdoc-themes Ensure build/tmp exists in rustdoc_themes::get_themes 2023-09-20 08:31:33 +02:00
rustfmt Actually, just use nonterminal_may_begin_with 2024-01-22 02:19:42 +00:00
suggest-tests Add test suggestions for mir-opt and coverage 2023-11-16 14:02:51 +11:00
tidy Move multiple UI issue tests to subdirectories 2024-01-29 17:31:56 -06:00
tier-check
unicode-table-generator
unstable-book-gen
x
cherry-pick.sh
publish_toolstate.py