In Which Code The Parsing Of Function Happen In Rustc?
Rust Internals
In Which Code The Parsing Of Function Happen In Rustc?
Hello, I'm trying to experiment Rust with semicolon inference. For now, it can handle this, except the handling of call function that has return value at the last code of function that does not has return type isn't inserted semicolon yet #![no_std] fn return_i32() -> i32 { let a = 10 let b = 20 a + b } fn no_return() { let a = return_i32 () let b = 30 } fn expect_i32() -> i32 { let a = if 2 == 2 { let b = return_i32() b * 4 } else { 2...
0 comments
No comments yet.