Skip to content

Commit 925718d

Browse files
committed
Make the "expensive" comment belong to a branch
1 parent 83b97ae commit 925718d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/use_self.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
9494
.as_ref()
9595
.is_none_or(|params| params.parenthesized == GenericArgsParentheses::No)
9696
&& !item.span.from_expansion()
97+
// expensive, should be last check
9798
&& !is_from_proc_macro(cx, item)
98-
// expensive, should be last check
9999
{
100100
// Self cannot be used inside const generic parameters
101101
let types_to_skip = generics

0 commit comments

Comments
 (0)