Fix unused_braces
on generic const expr macro call
This commit is contained in:
parent
44a500c8c1
commit
4f64de83bc
4 changed files with 16 additions and 1 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue