about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-09-02 18:59:22 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-09-02 19:35:17 -0700
commitb5f905342337a3dc12bdc5dc6d98d3ecdf60439d (patch)
tree358daa3dbd66b22aec8080053cd08d688669613a /src/rt/rust_task.cpp
parentbdd0417cec937553dec77702bb6b78ed7a07b773 (diff)
downloadrust-b5f905342337a3dc12bdc5dc6d98d3ecdf60439d.tar.gz
rust-b5f905342337a3dc12bdc5dc6d98d3ecdf60439d.zip
Add a constraint to trans::type_of
trans::type_of now has a constraint saying that its type argument
is statically sized. This eliminates the "impossible happened" case
in type_of. Yay!

I note that this change decreased translation time for stage2/rustc
from 16.1 s to 14.0 s. I also think many of the remaining checks
could be eliminated with some mildly clever use of constrained types
and further preconditions. Future work!
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions