change unreachable{} to @unreachable()

instead of a container init expression, it's a builtin
function call.
This commit is contained in:
Andrew Kelley
2016-09-13 16:46:27 -04:00
parent ea2f6594ce
commit 06f2f4d64b
13 changed files with 89 additions and 81 deletions

View File

@@ -299,7 +299,7 @@ pub fn lseek(fd: i32, offset: usize, ref_pos: usize) -> usize {
pub fn exit(status: i32) -> unreachable {
arch.syscall1(arch.SYS_exit, usize(status));
unreachable{}
@unreachable()
}
pub fn getrandom(buf: &u8, count: usize, flags: u32) -> usize {