Make the "expensive" comment belong to a branch
This commit is contained in:
parent
83b97ae713
commit
925718d8eb
1 changed files with 1 additions and 1 deletions
|
|
@ -94,8 +94,8 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
|
|||
.as_ref()
|
||||
.is_none_or(|params| params.parenthesized == GenericArgsParentheses::No)
|
||||
&& !item.span.from_expansion()
|
||||
// expensive, should be last check
|
||||
&& !is_from_proc_macro(cx, item)
|
||||
// expensive, should be last check
|
||||
{
|
||||
// Self cannot be used inside const generic parameters
|
||||
let types_to_skip = generics
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue