Skip to content

Commit

Permalink
Make the "expensive" comment belongs to a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jul 20, 2024
1 parent c499a9e commit d02153a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/use_self.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
.as_ref()
.map_or(true, |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
Expand Down

0 comments on commit d02153a

Please sign in to comment.