mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-23 16:45:14 +00:00
Merge pull request #571 from nrc/semi
Don't strip semi-colons from expressions with non-void type since it …
This commit is contained in:
@@ -41,7 +41,7 @@ fn foo() -> bool {
|
||||
result
|
||||
} else {
|
||||
4
|
||||
}
|
||||
};
|
||||
|
||||
if let Some(x) = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa {
|
||||
// Nothing
|
||||
@@ -254,5 +254,5 @@ fn repeats() {
|
||||
fn blocks() {
|
||||
if 1 + 1 == 2 {
|
||||
println!("yay arithmetix!");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ fn issue383() {
|
||||
match resolution.last_private {
|
||||
LastImport{..} => false,
|
||||
_ => true,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
fn issue507() {
|
||||
|
||||
Reference in New Issue
Block a user