Implement mut ref
/mut ref mut
This commit is contained in:
parent
10a7aa14fe
commit
e0da13f25f
51 changed files with 442 additions and 378 deletions
|
@ -2364,14 +2364,6 @@ pub(crate) struct UnexpectedLifetimeInPattern {
|
|||
pub symbol: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_ref_mut_order_incorrect)]
|
||||
pub(crate) struct RefMutOrderIncorrect {
|
||||
#[primary_span]
|
||||
#[suggestion(code = "ref mut", applicability = "machine-applicable")]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
pub(crate) enum InvalidMutInPattern {
|
||||
#[diag(parse_mut_on_nested_ident_pattern)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue