about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2023-07-30 16:42:16 +0200
committerUrgau <urgau@numericable.fr>2023-07-30 17:15:55 +0200
commit8ea7e45e44b6bc6437932415a3e0f54caad890b6 (patch)
treeb3f18673ba378b1ec9e5355690ce076a21fa8c81 /compiler/rustc_codegen_llvm/src/errors.rs
parent04411507bef1d2db441acdc1d89268f0cbaaccbc (diff)
downloadrust-8ea7e45e44b6bc6437932415a3e0f54caad890b6.tar.gz
rust-8ea7e45e44b6bc6437932415a3e0f54caad890b6.zip
Fix invalid suggestion for mismatched types in closure arguments
The invalid suggestion came from a wrongly created span in `rustc_parse'
for closure arguments that didn't have a type specified. Specifically,
the span in this case was the last token span, but in the case of
tuples, the span represented the last parenthesis instead of the whole
tuple, which is fixed by taking the more accurate span of the pattern.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions