Rollup merge of #105515 - estebank:issue-104141, r=oli-obk
Account for macros in const generics Fix #104141.
This commit is contained in:
commit
b8d71fc41f
2 changed files with 7 additions and 0 deletions
|
@ -1142,6 +1142,7 @@ impl UnusedDelimLint for UnusedBraces {
|
|||
&& !cx.sess().source_map().is_multiline(value.span)
|
||||
&& value.attrs.is_empty()
|
||||
&& !value.span.from_expansion()
|
||||
&& !inner.span.from_expansion()
|
||||
{
|
||||
self.emit_unused_delims_expr(cx, value, ctx, left_pos, right_pos)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue