Skip to content

Commit 44a086e

Browse files
committed
Review comment
1 parent 81b876b commit 44a086e

10 files changed

+12
-12
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3704,8 +3704,8 @@ impl<'a> Parser<'a> {
37043704
Applicability::MaybeIncorrect,
37053705
);
37063706
} else {
3707-
err.note("type ascription is a nightly only feature that lets \
3708-
you annotate expressions with a type: `<expr>: <type>`");
3707+
err.note("type ascription is a nightly-only feature that lets \
3708+
you annotate an expression with a type: `<expr>: <type>`");
37093709
err.span_note(
37103710
lhs_span,
37113711
"this expression is annotated with type ascription...",

src/test/ui/error-codes/E0423.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected type, found `1`
44
LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); }
55
| ^ expecting a type here because of type ascription
66
|
7-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
7+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
88
note: this expression is annotated with type ascription...
99
--> $DIR/E0423.rs:12:36
1010
|
@@ -29,7 +29,7 @@ error: expected type, found `0`
2929
LL | for _ in std::ops::Range { start: 0, end: 10 } {}
3030
| ^ expecting a type here because of type ascription
3131
|
32-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
32+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
3333
note: this expression is annotated with type ascription...
3434
--> $DIR/E0423.rs:21:32
3535
|

src/test/ui/issues/issue-22644.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ error: expected type, found `4`
8989
LL | println!("{}", a: &mut 4);
9090
| ^ expecting a type here because of type ascription
9191
|
92-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
92+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
9393
note: this expression is annotated with type ascription...
9494
--> $DIR/issue-22644.rs:34:20
9595
|

src/test/ui/issues/issue-34255-1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected type, found `42`
44
LL | Test::Drill(field: 42);
55
| ^^ expecting a type here because of type ascription
66
|
7-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
7+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
88
note: this expression is annotated with type ascription...
99
--> $DIR/issue-34255-1.rs:8:17
1010
|

src/test/ui/lifetime_starts_expressions.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ error: expected type, found keyword `loop`
1414
LL | loop { break 'label: loop { break 'label 42; }; }
1515
| ^^^^ expecting a type here because of type ascription
1616
|
17-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
17+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
1818
note: this expression is annotated with type ascription...
1919
--> $DIR/lifetime_starts_expressions.rs:6:12
2020
|

src/test/ui/parser/struct-literal-in-for.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected type, found `3`
44
LL | x: 3
55
| ^ expecting a type here because of type ascription
66
|
7-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
7+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
88
note: this expression is annotated with type ascription...
99
--> $DIR/struct-literal-in-for.rs:13:9
1010
|

src/test/ui/parser/struct-literal-in-if.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected type, found `3`
44
LL | x: 3
55
| ^ expecting a type here because of type ascription
66
|
7-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
7+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
88
note: this expression is annotated with type ascription...
99
--> $DIR/struct-literal-in-if.rs:13:9
1010
|

src/test/ui/parser/struct-literal-in-while.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected type, found `3`
44
LL | x: 3
55
| ^ expecting a type here because of type ascription
66
|
7-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
7+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
88
note: this expression is annotated with type ascription...
99
--> $DIR/struct-literal-in-while.rs:13:9
1010
|

src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: expected type, found `3`
44
LL | x: 3
55
| ^ expecting a type here because of type ascription
66
|
7-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
7+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
88
note: this expression is annotated with type ascription...
99
--> $DIR/struct-literal-restrictions-in-lamda.rs:13:9
1010
|

src/test/ui/type/type-ascription-instead-of-statement-end.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ error: expected type, found `0`
1212
LL | println!("test"): 0;
1313
| ^ expecting a type here because of type ascription
1414
|
15-
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
15+
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
1616
note: this expression is annotated with type ascription...
1717
--> $DIR/type-ascription-instead-of-statement-end.rs:9:5
1818
|

0 commit comments

Comments
 (0)