Skip to content

Commit 26e299a

Browse files
notriddlecjgillot
andcommitted
Use consistent prose for ::
Co-authored-by: Camille Gillot <[email protected]>
1 parent 7e32337 commit 26e299a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_parse/src/parser/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ impl<'a> Parser<'a> {
20802080
// Find a mistake like "foo::var:A".
20812081
err.span_suggestion(
20822082
snapshot.token.span,
2083-
"you might have meant to write a path",
2083+
"write a path separator here",
20842084
"::".to_string(),
20852085
Applicability::MaybeIncorrect,
20862086
);

src/test/ui/generics/single-colon-path-not-const-generics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod foo {
77
pub struct Foo {
88
a: Vec<foo::bar:A>,
99
//~^ ERROR expected
10-
//~| HELP you might have meant to write a path
10+
//~| HELP path separator
1111
}
1212

1313
fn main() {}

src/test/ui/generics/single-colon-path-not-const-generics.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | a: Vec<foo::bar:A>,
55
| ^
66
| |
77
| expected one of `,` or `>`
8-
| help: you might have meant to write a path: `::`
8+
| help: write a path separator here: `::`
99

1010
error: aborting due to previous error
1111

0 commit comments

Comments
 (0)