about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-23 19:42:37 +0200
committerGitHub <noreply@github.com>2024-07-23 19:42:37 +0200
commitc2ba4b1cb02e680f262e239ea0f317581049fe03 (patch)
tree73a92ac9550a2585afda38ddf127a7f9053c8453 /compiler/rustc_pattern_analysis/src/errors.rs
parent417bdc703663fc0870b78260a01ce5b53393e114 (diff)
parentb7495b401caa7379a19191c491088dc4de95b4c9 (diff)
downloadrust-c2ba4b1cb02e680f262e239ea0f317581049fe03.tar.gz
rust-c2ba4b1cb02e680f262e239ea0f317581049fe03.zip
Rollup merge of #128082 - compiler-errors:closure-cap, r=estebank
Note closure captures when reporting cast to fn ptr failed

Fixes #128078

We already had logic to point out a closure having captures when that's possibly the source of a coercion error to `fn()`, but we weren't reporting it during an explicit `as` cast.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions