1
Fork 0

Require parentheses to avoid confusions around labeled break and loop expressions

This commit is contained in:
Fabian Wolff 2021-07-10 16:38:55 +02:00
parent 7069a8c2b7
commit 470cbc0e2e
6 changed files with 152 additions and 21 deletions

View file

@ -304,6 +304,7 @@ pub enum BuiltinLintDiagnostics {
OrPatternsBackCompat(Span, String),
ReservedPrefix(Span),
TrailingMacro(bool, Ident),
BreakWithLabelAndLoop(Span),
}
/// Lints that are buffered up early on in the `Session` before the