1
Fork 0

Fix unused_braces on generic const expr macro call

This commit is contained in:
clubby789 2023-01-07 15:41:32 +00:00
parent 44a500c8c1
commit 4f64de83bc
4 changed files with 16 additions and 1 deletions

View file

@ -1105,6 +1105,7 @@ impl UnusedDelimLint for UnusedBraces {
|| matches!(expr.kind, ast::ExprKind::Lit(_)))
&& !cx.sess().source_map().is_multiline(value.span)
&& value.attrs.is_empty()
&& !expr.span.from_expansion()
&& !value.span.from_expansion()
&& !inner.span.from_expansion()
{