Skip to content

Commit c938b1a

Browse files
committed
Make the "expensive" comment belong to a branch
1 parent 7213f77 commit c938b1a

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
@@ -98,8 +98,8 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
9898
.as_ref()
9999
.map_or(true, |params| params.parenthesized == GenericArgsParentheses::No)
100100
&& !item.span.from_expansion()
101+
// expensive, should be last check
101102
&& !is_from_proc_macro(cx, item)
102-
// expensive, should be last check
103103
{
104104
// Self cannot be used inside const generic parameters
105105
let types_to_skip = generics

0 commit comments

Comments
 (0)