diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-20 18:47:01 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-20 18:48:08 -0700 |
| commit | 734166f41c3c5ba48498df0133383a451e7fdb3e (patch) | |
| tree | 62c39695f9419533da0f02fb4fd5509176f5848d /src/rt/rust_kernel.cpp | |
| parent | 43061f3969d1d961bd4e4d57c06452ca80c1adb6 (diff) | |
| download | rust-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
