diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-12-11 22:30:14 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2017-01-03 15:48:29 +0800 |
| commit | 7946597f7556dc8e1ad05e02d7e82b4ff800a5ac (patch) | |
| tree | f3a24de5d4cb2bd712cf14b0c14152cc1f563ead /src/test/incremental/thinlto | |
| parent | 9482492ab65820773ba0b5bd1ad81da5f5858c6c (diff) | |
| download | rust-7946597f7556dc8e1ad05e02d7e82b4ff800a5ac.tar.gz rust-7946597f7556dc8e1ad05e02d7e82b4ff800a5ac.zip | |
Refactor is_uninhabited
We now cache the inhabitedness of types in the GlobalCtxt. Rather than calculating whether a type is visibly uninhabited from a given NodeId we calculate the full set of NodeIds from which a type is visibly uninhabited then cache that set. We can then use that to answer queries about the inhabitedness of a type relative to any given node.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
