about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-07-19 04:04:17 +0000
committerbors <bors@rust-lang.org>2019-07-19 04:04:17 +0000
commitf9477a77c52af8d3dea361b3f4ac3e60653aa529 (patch)
tree13459d013bcd32ccd59de28a29c6aab8853f6fd4 /src/libsyntax/parse/parser
parentfe499a7b34dcb1fc054dd637ea561a19a268d2de (diff)
parentf8681f0c05c91df4aaf90a0ca60d1f823cf89d9d (diff)
downloadrust-f9477a77c52af8d3dea361b3f4ac3e60653aa529.tar.gz
rust-f9477a77c52af8d3dea361b3f4ac3e60653aa529.zip
Auto merge of #62694 - lundibundi:help-infer-fn-ret, r=eddyb
rustc_typeck: improve diagnostics for -> _ fn return type

This should implement IIUC the mentioned issue.

~~I'm not sure if there is a better way than `get_infer_ret_ty` to get/check the return type without code duplication.~~

~~Also, is this unwrap be okay `ty::Binder::bind(*tables.liberated_fn_sigs().get(hir_id).unwrap())`?~~

r? @eddyb
Closes: https://github.com/rust-lang/rust/issues/56132
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions