Implement .use keyword as an alias of clone
This commit is contained in:
parent
0cf8dbc96c
commit
05c516446a
36 changed files with 247 additions and 24 deletions
|
@ -106,6 +106,19 @@ pub(crate) struct IncorrectUseOfAwait {
|
|||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_incorrect_use_of_use)]
|
||||
pub(crate) struct IncorrectUseOfUse {
|
||||
#[primary_span]
|
||||
#[suggestion(
|
||||
parse_parentheses_suggestion,
|
||||
style = "verbose",
|
||||
code = "",
|
||||
applicability = "machine-applicable"
|
||||
)]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[multipart_suggestion(
|
||||
parse_incorrect_use_of_await_postfix_suggestion,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue