Skip to content

Commit dfb71c2

Browse files
committed
Auto merge of #144556 - matthiaskrgr:rollup-aayo3h5, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - rust-lang/rust#143607 (Port the proc macro attributes to the new attribute parsing infrastructure) - rust-lang/rust#144471 (Remove `compiler-builtins-{no-asm,mangled-names}`) - rust-lang/rust#144495 (bump cargo_metadata) - rust-lang/rust#144523 (rustdoc: save target modifiers) - rust-lang/rust#144534 (check_static_item: explain should_check_for_sync choices) - rust-lang/rust#144535 (miri: for ABI mismatch errors, say which argument is the problem) Failed merges: - rust-lang/rust#144536 (miri subtree update) r? `@ghost` `@rustbot` modify labels: rollup
2 parents cf0c182 + 0e0ecde commit dfb71c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
312312
/// Functions marked with these attributes must have the exact signature.
313313
pub(crate) fn requires_exact_signature(attrs: &[Attribute]) -> bool {
314314
attrs.iter().any(|attr| {
315-
[sym::proc_macro, sym::proc_macro_attribute, sym::proc_macro_derive]
316-
.iter()
317-
.any(|&allow| attr.has_name(allow))
315+
attr.is_proc_macro_attr()
318316
})
319317
}
320318

0 commit comments

Comments
 (0)