about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2019-07-28 17:57:04 -0400
committerAaron Hill <aa1ronham@gmail.com>2019-07-28 18:02:16 -0400
commit18bf9dd4b7e9834bc6981ee413f025f3b2f7e386 (patch)
treed66149ce2d46c15ac1280acfdcf31a605caf3b99 /src/test/incremental/thinlto
parent023525dbda35748a10713471b948974b68a1c2cc (diff)
downloadrust-18bf9dd4b7e9834bc6981ee413f025f3b2f7e386.tar.gz
rust-18bf9dd4b7e9834bc6981ee413f025f3b2f7e386.zip
Properly check the defining scope of existential types
Fixes #52632

Existential types (soon to be 'impl trait' aliases) can either be
delcared at a top-level crate/module scope, or within another item such
as an fn. Previously, we were handling the second case incorrectly when
recursively searching for defining usages - we would check children of
the item, but not the item itself. This lead to us missing closures
that consituted a defining use of the existential type, as their opaque
type instantiations are stored in the TypeckTables of their parent
function.

This commit ensures that we explicitly visit the defining item itself,
not just its children.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions