Parser: recover from ::: to ::
This commit is contained in:
@@ -1571,7 +1571,7 @@ pub(crate) struct ExpectedFnPathFoundFnKeyword {
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_path_single_colon)]
|
||||
#[diag(parse_path_double_colon)]
|
||||
pub(crate) struct PathSingleColon {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
@@ -1583,6 +1583,14 @@ pub(crate) struct PathSingleColon {
|
||||
pub type_ascription: bool,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_path_double_colon)]
|
||||
pub(crate) struct PathTripleColon {
|
||||
#[primary_span]
|
||||
#[suggestion(applicability = "maybe-incorrect", code = "", style = "verbose")]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_colon_as_semi)]
|
||||
pub(crate) struct ColonAsSemi {
|
||||
|
||||
Reference in New Issue
Block a user