rust/src/tools
bors d170833431 Auto merge of #112431 - Urgau:cast_ref_to_mut_improvments, r=Nilstrieb
Improve `invalid_reference_casting` lint

This PR is a follow-up to https://github.com/rust-lang/rust/pull/111567 and https://github.com/rust-lang/rust/pull/113422.

This PR does multiple things:
 - First it adds support for deferred de-reference, the goal is to support code like this, where the casting and de-reference are not done on the same expression
    ```rust
    let myself = self as *const Self as *mut Self;
    *myself = Self::Ready(value);
    ```
 - Second it does not lint anymore on SB/TB UB code by only checking assignments (`=`, `+=`, ...) and creation of mutable references `&mut *`
 - Thirdly it greatly improves the diagnostics in particular for cast from `&mut` to `&mut` or assignments
 - ~~And lastly it renames the lint from `cast_ref_to_mut` to `invalid_reference_casting` which is more consistent with the ["rules"](https://github.com/rust-lang/rust-clippy/issues/2845) and also more consistent with what the lint checks~~ *https://github.com/rust-lang/rust/pull/113422*

This PR is best reviewed commit by commit.

r? compiler
2023-08-02 11:25:13 +00:00
..
build-manifest Auto merge of #112922 - g0djan:godjan/wasi-threads, r=wesleywiser 2023-08-02 01:01:48 +00:00
build_helper Rollup merge of #113588 - RalfJung:llvm-merge-base, r=albertlarsan68 2023-08-01 06:55:53 +02:00
bump-stage0 Upgrade to indexmap 2.0.0 2023-07-03 13:51:54 -07:00
cargo@c91a693e79 Update cargo 2023-07-31 09:09:20 +01:00
cargotest
clippy Merge commit '5436dba826' into clippyup 2023-07-31 23:53:53 +02:00
collect-license-metadata Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
compiletest Auto merge of #111916 - fee1-dead-contrib:noop-method-call-warn, r=compiler-errors 2023-07-29 01:40:50 +00: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 Run expand-yaml-anchors in x test tidy 2023-02-05 14:46:52 -06:00
generate-copyright Fix remaining typos 2023-04-10 21:02:49 +02:00
generate-windows-sys Move arm32 shim to c.rs 2023-06-24 17:30:27 +01:00
html-checker
jsondocck Allow to have - in the rustdoc-json test file name 2023-07-12 10:45:49 +02:00
jsondoclint Allow to have - in the rustdoc-json test file name 2023-07-12 10:45:49 +02:00
linkchecker Appease lints 2023-05-14 22:00:23 +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
miri Auto merge of #112431 - Urgau:cast_ref_to_mut_improvments, r=Nilstrieb 2023-08-02 11:25:13 +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 Rollup merge of #113804 - Kobzol:opt-dist-version, r=Mark-Simulacrum 2023-07-31 22:51:13 +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 '99718d0c8b' into sync-from-ra 2023-07-24 12:21:34 +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 Change format of rustdoc-js tests by putting query and correction directly alongside the expected values 2023-06-09 17:00:47 +02:00
rustdoc-themes
rustfmt Auto merge of #114115 - nnethercote:less-token-tree-cloning, r=petrochenkov 2023-07-28 01:21:27 +00:00
suggest-tests Fix the test directories suggested by ./x.py suggest 2023-04-30 11:05:13 +10:00
tidy Rollup merge of #114193 - crlf0710:lexer_unicode15, r=Manishearth 2023-07-31 22:51:15 +02: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