about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-06-08 13:32:20 -0700
committerGitHub <noreply@github.com>2022-06-08 13:32:20 -0700
commite0409200d978a377d4646e8da7be60483206ed64 (patch)
tree4dfdf1ba3f1f5f711bc3cd1e1d8a11fd8eb58a0f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent888d72c2bfd1f3755ee370e83f3248efa0689fc6 (diff)
parent2ae1ec911939331256ed5ab79e7971e859030d94 (diff)
downloadrust-e0409200d978a377d4646e8da7be60483206ed64.tar.gz
rust-e0409200d978a377d4646e8da7be60483206ed64.zip
Rollup merge of #97856 - compiler-errors:bad-let-suggestions, r=estebank
Don't suggest adding `let` in certain `if` conditions

Avoid being too eager to suggest `let` in an `if` condition with an `=`, namely when the LHS of the `=` isn't even valid as a pattern (to a first degree approximation).

This heustic I came up with kinda sucks. Let me know if it needs to be refined.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions