Skip to content

Commit

Permalink
Use consistent prose for ::
Browse files Browse the repository at this point in the history
Co-authored-by: Camille Gillot <[email protected]>
  • Loading branch information
notriddle and cjgillot committed Mar 12, 2022
1 parent 7e32337 commit 26e299a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/parser/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ impl<'a> Parser<'a> {
// Find a mistake like "foo::var:A".
err.span_suggestion(
snapshot.token.span,
"you might have meant to write a path",
"write a path separator here",
"::".to_string(),
Applicability::MaybeIncorrect,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod foo {
pub struct Foo {
a: Vec<foo::bar:A>,
//~^ ERROR expected
//~| HELP you might have meant to write a path
//~| HELP path separator
}

fn main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LL | a: Vec<foo::bar:A>,
| ^
| |
| expected one of `,` or `>`
| help: you might have meant to write a path: `::`
| help: write a path separator here: `::`

error: aborting due to previous error

0 comments on commit 26e299a

Please sign in to comment.