Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Nov 28, 2023
1 parent 86ddfc0 commit 36c74e4
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 173 deletions.
7 changes: 5 additions & 2 deletions compiler/rustc_parse/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3413,7 +3413,7 @@ pub(crate) struct GenericArgsInPatRequireTurbofishSyntax {
}

#[derive(Diagnostic)]
#[diag(parse_transpose_dyn_or_impl)]
#[diag("`for<...>` expected after `{$kw}`, not before")]
pub(crate) struct TransposeDynOrImpl<'a> {
#[primary_span]
pub span: Span,
Expand All @@ -3423,7 +3423,10 @@ pub(crate) struct TransposeDynOrImpl<'a> {
}

#[derive(Subdiagnostic)]
#[multipart_suggestion(parse_suggestion, applicability = "machine-applicable")]
#[multipart_suggestion(
label = "move `{$kw}` before the `for<...>`",
applicability = "machine-applicable"
)]
pub(crate) struct TransposeDynOrImplSugg<'a> {
#[suggestion_part(code = "")]
pub removal_span: Span,
Expand Down

0 comments on commit 36c74e4

Please sign in to comment.