diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-03-13 09:55:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 09:55:18 -0700 |
commit | eeebba038e4c5b8aa9f3c02cc304a99227fcbaa3 (patch) | |
tree | e1590316578734afd48cb72ab196f2c3bc0e6eae /src/codegen/mod.rs | |
parent | 1320efeb79d373acb8dd92fb2722732c251497d8 (diff) | |
parent | b7f7850568c9d8f70af8d382d29c00252648e9cc (diff) |
Auto merge of #575 - fitzgen:issue-574-anonymous-template-parameters-and-assertion-failure, r=fitzgen
Allow anonymous template types
We have various assertions that the only way that some template parameter related methods will return `None` is if the template definition is marked opaque. These assertions fail in the presence of test cases with unnamed template types, because we never save an IR item for the template type, and subsequently think that the template definition has no template parameters. The assertions are in fact sound and correct, so it doesn't make sense to remove them. Instead it is more correct to save IR items for the anonymous template types and simply let the template usage analysis prevent them from getting
codegen'd.
Fixes #574
r? @emilio
Diffstat (limited to 'src/codegen/mod.rs')
0 files changed, 0 insertions, 0 deletions