Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ptr_arg: honor allow attribute on arguments #5647

Merged
merged 1 commit into from
May 25, 2020

Conversation

ebroto
Copy link
Member

@ebroto ebroto commented May 25, 2020

The intravisit::Visitor impl for LateContextAndPass only takes into account the attributes of a function parameter inside the check_param method. ptr_arg starts its heuristics at check_item / check_impl_item / check_trait_item, so the allow is not taken into account automatically.

changelog: ptr_arg: honor allow attribute on arguments

Fixes #5644

@rust-highfive
Copy link

r? @Manishearth

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 25, 2020
@flip1995
Copy link
Member

We had a utils::is_allowed function? :O

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented May 25, 2020

📌 Commit a1824e1 has been approved by flip1995

@bors
Copy link
Contributor

bors commented May 25, 2020

⌛ Testing commit a1824e1 with merge 2a6cfa7...

@bors
Copy link
Contributor

bors commented May 25, 2020

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 2a6cfa7 to master...

@bors bors merged commit 2a6cfa7 into rust-lang:master May 25, 2020
@ebroto ebroto deleted the 5644_allow_ptr_arg_in_arg_position branch May 25, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow(ptr_arg) in argument position
5 participants