about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-04-20 18:47:01 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-04-20 18:48:08 -0700
commit734166f41c3c5ba48498df0133383a451e7fdb3e (patch)
tree62c39695f9419533da0f02fb4fd5509176f5848d /src/rt/rust_kernel.cpp
parent43061f3969d1d961bd4e4d57c06452ca80c1adb6 (diff)
downloadrust-734166f41c3c5ba48498df0133383a451e7fdb3e.tar.gz
rust-734166f41c3c5ba48498df0133383a451e7fdb3e.zip
Print out return type correctly in typestate error message
In the "not all paths return" error message, typestate was printing
the AST type from the fn decl, not the ty::t type. This ended in tears
when the AST return type was "ty_infer". Now it looks up the function node
ID's type and uses util::ppaux::ty_to_str instead.

Closes #2163.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions