fix confusing diagnostic for reserved ##
This commit is contained in:
parent
7db7489f9b
commit
44f4f67f46
14 changed files with 141 additions and 107 deletions
|
@ -2151,6 +2151,15 @@ pub(crate) enum UnknownPrefixSugg {
|
|||
},
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_reserved_multihash)]
|
||||
#[note]
|
||||
pub(crate) struct ReservedMultihash {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
#[subdiagnostic]
|
||||
pub sugg: Option<GuardedStringSugg>,
|
||||
}
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_reserved_string)]
|
||||
#[note]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue