rust/src/tools
bors 59edd67056 Auto merge of #116497 - compiler-errors:impl-span, r=cjgillot
Extend `impl`'s `def_span` to include its where clauses

Typically, we highlight the def-span of an impl in a diagnostic due to either:
1. coherence error
2. trait evaluation cycle
3. invalid implementation of built-in trait

I find that an impl's where clauses are very often required to understanding why these errors come about, which is unfortunate since where clauses may be located on different lines and don't show up in the error. This PR expands the def-span of impls to include these where clauses.

r? cjgillot since you've touched this code a while back to make some spans shorter, but you can also reassign to wg-diagnostics or compiler if you're busy or have no strong opinions.
2023-10-09 21:03:41 +00:00
..
build-manifest Promote loongarch64-unknown-none* to Tier 2 2023-09-26 16:20:23 +08:00
build_helper Rollup merge of #114453 - Kobzol:ci-group-stdout, r=onur-ozkan 2023-10-02 16:09:41 -04:00
bump-stage0 Upgrade to indexmap 2.0.0 2023-07-03 13:51:54 -07:00
cargo@794d0a8254 Update cargo 2023-10-04 10:33:52 +08:00
cargotest
clippy Extend impl's def_span to include where clauses 2023-10-09 11:47:02 +00:00
collect-license-metadata Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
compiletest linker: Remove -Zgcc-ld option 2023-10-08 10:05:25 +03: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 Provide more context for rustc +nightly -Zunstable-options on stable 2023-06-27 23:23:33 +08:00
expand-yaml-anchors
generate-copyright Fix remaining typos 2023-04-10 21:02:49 +02:00
generate-windows-sys Update windows ffi bindings 2023-08-28 20:12:00 +01:00
html-checker
jsondocck Allow to have - in the rustdoc-json test file name 2023-07-12 10:45:49 +02: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 Revert "Fix x test lint-docs when download-rustc is enabled" 2023-07-11 22:30:28 -05:00
lld-wrapper linker: Remove -Zgcc-ld option 2023-10-08 10:05:25 +03:00
miri Merge from rustc 2023-10-07 05:10:55 +00:00
miropt-test-tools add way to split mir-opt into panic=abort and panic=unwind 2023-06-12 09:34:14 +02:00
opt-dist Add artifact size and step duration summaries from opt-dist to github job summary 2023-10-02 17:54:11 +02:00
remote-test-client
remote-test-server
replace-version-placeholder Only depend on CFG_VERSION in rustc_interface 2023-05-17 23:54:21 -05:00
rls Don't use serde-derive in the rls shim 2023-07-10 14:53:57 -07:00
rust-analyzer Merge commit '258b15c506' into sync-from-ra 2023-09-18 12:33:49 +03:00
rust-demangler
rust-installer rust-installer: Use env(1) in the shebang. 2023-07-21 17:55:49 -07:00
rustbook bump few deps 2023-04-06 18:21:37 +03:00
rustdoc
rustdoc-gui Transform backslash into slashes in DOC_FOLDER variable for browser-ui-test 2023-06-14 10:37:56 +02:00
rustdoc-gui-test Make try_run return a Result<(), ()> instead of a boolean 2023-06-23 17:07:34 +02:00
rustdoc-js rustdoc: fix test case for generics that look like names 2023-09-03 13:06:08 -07:00
rustdoc-themes Ensure build/tmp exists in rustdoc_themes::get_themes 2023-09-20 08:31:33 +02:00
rustfmt Fix spans for comments in rustfmt 2023-10-04 21:09:54 +00:00
suggest-tests Fix the test directories suggested by ./x.py suggest 2023-04-30 11:05:13 +10:00
tidy Remove no longer used dependency from the list of allowed dependencies 2023-10-09 09:04:52 +00:00
tier-check
unicode-table-generator remove some unneeded imports 2023-04-12 19:27:18 +02:00
unstable-book-gen
x Add other workspaces to linkedProjects in rust_analyzer_settings.json 2023-05-26 12:08:58 -05:00
cherry-pick.sh
publish_toolstate.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00