diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2017-04-14 15:51:54 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2017-04-17 09:30:05 -0700 |
commit | 568b01114517a02e098c2bb39ca504dabfcc55c7 (patch) | |
tree | 45d498ec45210fa54a7ee184d1869cb60b6fe91a /src/codegen/mod.rs | |
parent | a36c09baed79bfb4368df5c6e537f4f485653646 (diff) |
Ensure that every item we `constrain` has a set of used template parameters
This is a follow up to c8a206a, and the support for blacklisting in the named
template parameter usage analysis. This ensures that ever item we ever call
`constrain` on has an entry in `used` for the set of template parameters it
uses. Additionally, it adds extra assertions to enforce the invariant.
We cannot completely avoid analyzing blacklisted items because we want to
consider all of a blacklisted template's parameters as used. This is why we
ensure that blacklisted items have a used template parameter set rather than
ensuring that blacklisted items never end up in the worklist.
Diffstat (limited to 'src/codegen/mod.rs')
0 files changed, 0 insertions, 0 deletions