Skip to content

Commit

Permalink
Apply Centril's suggestion
Browse files Browse the repository at this point in the history
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
  • Loading branch information
ehuss and Centril authored Aug 13, 2019
1 parent ea1a9a0 commit 643ddfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ impl<'a> Parser<'a> {
if self.eat_keyword(kw::Else) || !cond.returns() {
let sp = self.sess.source_map().next_point(lo);
let mut err = self.diagnostic()
.struct_span_err(sp, "missing condition for `if` statement");
.struct_span_err(sp, "missing condition for `if` expression");
err.span_label(sp, "expected if condition here");
return Err(err)
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/issues/issue-13483.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
error: missing condition for `if` statement
error: missing condition for `if` expression
--> $DIR/issue-13483.rs:3:14
|
LL | } else if {
| ^ expected if condition here

error: missing condition for `if` statement
error: missing condition for `if` expression
--> $DIR/issue-13483.rs:10:14
|
LL | } else if {
Expand Down

0 comments on commit 643ddfa

Please sign in to comment.