my rust fork
https://www.rust-lang.org
Change ty_fn to have a controlflow field. A 'controlflow' is
essentially a bit of data that says whether or not this function
never returns to the caller (if it never returns, that means it calls
"fail" or another "never-returns" function on every control path).
Also add syntax for annotating functions that never return:
fn foo() -> ! {
fail;
}
for example. Functions marked with ! implicitly have a result type of
ty_bot, which is a new type that this commit also adds.
|
||
|---|---|---|
| doc | ||
| mk | ||
| src | ||
| .gitignore | ||
| AUTHORS.txt | ||
| configure | ||
| LICENSE.txt | ||
| Makefile.in | ||
| README | ||
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://github.com/graydon/rust for current development page.