about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-03-20 12:55:18 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-03-20 19:44:38 -0700
commitdb003623134dbabae9a8065398644dc141b19d46 (patch)
tree9e941110d5ff729b27d33a04601aa05a1e281eed /src/rt/sync/rust_thread.cpp
parent63a292fd8686f56efe7836aef46709a063efab4e (diff)
downloadrust-db003623134dbabae9a8065398644dc141b19d46.tar.gz
rust-db003623134dbabae9a8065398644dc141b19d46.zip
Make typechecker compositional
The typechecker previously passed around a boolean return flag to
indicate whether it saw something with type _|_ (that is, something
it knows at compile-time will definitely diverge) and also had some
manual checks for the `ty_err` pseudo-type that represents a previous
type error. This was because the typing rules implemented by the
typechecker didn't properly propagate _|_ and ty_err. I fixed it.

This also required changing expected error messages in a few tests,
as now we're printing out fewer derived errors -- in fact, at this
point we should print out no derived errors, so report any that
you see (ones that include "[type error]") as bugs.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions