rust/src
bors 2562f8466c
Auto merge of #11070 - y21:issue11065, r=flip1995
[`useless_conversion`]: only lint on paths to fn items and fix FP in macro

Fixes #11065 (which is actually two issues: an ICE and a false positive)

It now makes sure that the function call path points to a function-like item (and not e.g. a `const` like in the linked issue), so that calling `TyCtxt::fn_sig` later in the lint does not ICE (fixes https://github.com/rust-lang/rust-clippy/issues/11065#issuecomment-1616836099).
It *also* makes sure that the expression is not part of a macro call (fixes https://github.com/rust-lang/rust-clippy/issues/11065#issuecomment-1616919639). ~~I'm not sure if there's a better way to check this other than to walk the parent expr chain and see if any of them are expansions.~~ (edit: it doesn't do this anymore)

changelog: [`useless_conversion`]: fix ICE when call receiver is a non-fn item
changelog: [`useless_conversion`]: don't lint if argument is a macro argument (fixes a FP)

r? `@llogiq` (reviewed #10814, which introduced these issues)
2023-08-17 17:50:37 +02:00
..
bootstrap bootstrap: config: fix version comparison bug 2023-08-11 18:52:16 -07:00
ci Disable dist tests on beta/stable 2023-07-17 14:08:33 +02:00
doc Rollup merge of #113384 - joshtriplett:style-guide-grammar, r=compiler-errors 2023-07-06 09:20:35 +08:00
etc User may want to skip tidy check sometimes 2023-06-30 15:37:10 +08:00
librustdoc remove TypeWellFormedFromEnv 2023-07-03 21:40:04 +00:00
llvm-project@c9bca8a6cb [beta-1.72] Update LLVM to resolve a miscompilation found in 114312. 2023-08-12 12:19:45 +08:00
rustdoc-json-types Verify that ItemEnum can be serialized and then deserialized using bincode 2023-05-22 18:26:20 +01:00
tools Auto merge of #11070 - y21:issue11065, r=flip1995 2023-08-17 17:50:37 +02:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump to released stable compiler 2023-07-21 20:36:14 -04:00
version Bump to 1.72.0 2023-05-27 14:23:37 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.