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 83b97ae commit 925718dCopy full SHA for 925718d
clippy_lints/src/use_self.rs
@@ -94,8 +94,8 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
94
.as_ref()
95
.is_none_or(|params| params.parenthesized == GenericArgsParentheses::No)
96
&& !item.span.from_expansion()
97
+ // expensive, should be last check
98
&& !is_from_proc_macro(cx, item)
- // expensive, should be last check
99
{
100
// Self cannot be used inside const generic parameters
101
let types_to_skip = generics
0 commit comments