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

zero_ptr lint in constexpr contexts #1606

Closed
aldanor opened this issue Mar 6, 2017 · 1 comment
Closed

zero_ptr lint in constexpr contexts #1606

aldanor opened this issue Mar 6, 2017 · 1 comment

Comments

@aldanor
Copy link

aldanor commented Mar 6, 2017

As of the latest version, zero_ptr lint is triggered on invocations of lazy_static! macro which uses 0 as *const _ in a constexpr context where ptr::null() cannot be possibly used without a feature gate.

@oli-obk
Copy link
Contributor

oli-obk commented Mar 6, 2017

Dupe of #1580

@oli-obk oli-obk closed this as completed Mar 6, 2017
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

No branches or pull requests

2 participants