Add a detailed note for missing comma in FRU syntax typo

This commit is contained in:
Michael Goulet 2022-11-16 19:10:38 +00:00
parent fd3bfb3551
commit bb0cb9ae9f
10 changed files with 155 additions and 31 deletions

View file

@ -466,6 +466,9 @@ pub enum StashKey {
/// When an invalid lifetime e.g. `'2` should be reinterpreted
/// as a char literal in the parser
LifetimeIsChar,
/// Maybe there was a typo where a comma was forgotten before
/// FRU syntax
MaybeFruTypo,
}
fn default_track_diagnostic(_: &Diagnostic) {}