about summary refs log tree commit diff
path: root/src/librustc_data_structures/work_queue.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-09-26 16:37:31 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-09-26 17:07:25 -0400
commitbcfdfe4e5007867dcd2e80a36921dfc538aae9d9 (patch)
treed4d96a5ca2de12a160efed3fbc07f61423b2230b /src/librustc_data_structures/work_queue.rs
parentc7df1f530b8a88f471e60e933868e7ddf456974d (diff)
downloadrust-bcfdfe4e5007867dcd2e80a36921dfc538aae9d9.tar.gz
rust-bcfdfe4e5007867dcd2e80a36921dfc538aae9d9.zip
use the closure def-id in returns, but closure-base def-id in locals
Using the `closure_base_def_id` indiscriminantely, as we were doing
before, winds up "going wrong" if the closure type includes the `impl
Trait` from the parent. The problem arises because the return value
for closures is inferred and meant to treat the return
type *opaquely*, so we don't want to be "desugaring" it into the
underlying type.
Diffstat (limited to 'src/librustc_data_structures/work_queue.rs')
0 files changed, 0 insertions, 0 deletions