We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7213f77 commit c938b1aCopy full SHA for c938b1a
clippy_lints/src/use_self.rs
@@ -98,8 +98,8 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
98
.as_ref()
99
.map_or(true, |params| params.parenthesized == GenericArgsParentheses::No)
100
&& !item.span.from_expansion()
101
+ // expensive, should be last check
102
&& !is_from_proc_macro(cx, item)
- // expensive, should be last check
103
{
104
// Self cannot be used inside const generic parameters
105
let types_to_skip = generics
0 commit comments