mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
734166f41c3c5ba48498df0133383a451e7fdb3e
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.
This is a compiler and suite of associated libraries and documentation for the Rust programming language. See LICENSE.txt for terms of copyright and redistribution. See http://www.rust-lang.org for more information.
Description
Languages
Rust
95.7%
Shell
1%
C
0.9%
JavaScript
0.6%
Python
0.4%
Other
1.1%