summaryrefslogtreecommitdiff
path: root/src/codegen/error.rs
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-03-10 10:46:50 -0800
committerNick Fitzgerald <fitzgen@gmail.com>2017-03-10 13:53:17 -0800
commit414442638a913bf5d924f9b16b2ae417cde5840b (patch)
tree1077c528aaaea889a6a038fe50ab063c5f5bb041 /src/codegen/error.rs
parent1320efeb79d373acb8dd92fb2722732c251497d8 (diff)
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
Diffstat (limited to 'src/codegen/error.rs')
0 files changed, 0 insertions, 0 deletions