Description
This isn't used by many lints, but clippy does have a few. This is the only location I've noticed, but I haven't checked everywhere.
fn f(
#[expect(clippy::ptr_arg)] _x: &Vec<u32>,
) {}
I expected to see this happen: Nothing
Instead, this happened:
error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
cc #54503
Activity
xFrednet commentedon Jun 3, 2022
Thank you for the report
@rustbot claim
@rustbot label +F-lint-reasons
#[expect]
attribute on fn parameters (RFC-2383) #97715Rollup merge of rust-lang#97715 - xFrednet:97650-expect-in-fuction-ar…
Rollup merge of rust-lang#97715 - xFrednet:97650-expect-in-fuction-ar…