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

Layout test should pass clippy borrow_as_ptr lint #2205

Closed
wants to merge 1 commit into from

Conversation

dlrobertson
Copy link

The generated layout tests should pass the borrow_as_ptr lint.

Fixes: #2204

The generated layout tests should pass the borrow_as_ptr lint.
@dlrobertson
Copy link
Author

Just a nit I stumbled upon... Let me know if I missed something 😄

@kulp
Copy link
Member

kulp commented May 15, 2022

Thanks.

This appears it would conflict with (and probably solve most or all the same problem as) #2203. If someone has time to evaluate additional differences between this PR and that one, it might be helpful. I personally am not an unsafe-wizard and so am loth to opine.

Regardless, I think you did indeed find a real issue: the underlying #1651.

@kulp
Copy link
Member

kulp commented May 15, 2022

Actually I think this PR leaves the UB in place, so it is only tangentially related to #1651.

It will be useful to obey the Clippy lint as well. Could you check whether #2203 obeys the lint already, @dlrobertson?

@dlrobertson
Copy link
Author

Ah! Woops! Should have looked through the PRs before opening one

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.

The generated layout tests should pass the borrow_as_ptr clippy lint
2 participants