about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-05-08 11:23:46 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-05-15 11:49:43 +0200
commitd14c6f2c7907198701dbbc356c2ce505347114b9 (patch)
tree3c4396d7304f52c822c30f1f77428d37440be034 /compiler/rustc_codegen_gcc
parent38d2387f691df3554a7ac6de2645711c85becb85 (diff)
downloadrust-d14c6f2c7907198701dbbc356c2ce505347114b9.tar.gz
rust-d14c6f2c7907198701dbbc356c2ce505347114b9.zip
Include `let` assignment in suggestion
Placeholders are still given for the content of the whole block. However, if the
result of the original `if let` or `match` expression was assigned, the
assignment is reflected in the suggestion.

No-op assignments (`let x = x;`) are skipped though, unless they contain an
explicit type which might help the compiler (`let x: u32 = x;` is kept).
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions