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

Prevent missing_const_for_fn on functions with const generic params #5216

Merged
merged 1 commit into from
Feb 22, 2020

Conversation

krishna-veerareddy
Copy link
Contributor

const functions cannot have const generic parameters so prevent the
missing_const_for_fn lint from firing in that case.

changelog: Fix false positive in missing_const_for_fn

Fixes #5192

`const` functions cannot have const generic parameters so prevent the
`missing_const_for_fn` lint from firing in that case.
@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Feb 22, 2020

📌 Commit 0490798 has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Feb 22, 2020

⌛ Testing commit 0490798 with merge 7e49122...

@bors
Copy link
Collaborator

bors commented Feb 22, 2020

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

@bors bors merged commit 7e49122 into rust-lang:master Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False Suggestion for const fn
3 participants