Skip to content

Strengthen warnings about relying on Mask layout #289

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

Merged

Conversation

thomcc
Copy link
Member

@thomcc thomcc commented Jul 1, 2022

This makes it more clear that you can't rely on the layout of these, which seems worth doing given that the names vaguely suggest that you can (and the docs only clarify that you can't on Mask but not the maskNxM aliases).

Not tied to the specific wording here, and I'm not sure that it's actually worth clarifying that "yes, this includes [iN; M]", so I'm open to rewording. I do think we should have the caveat on the type aliases as well, though.

@thomcc thomcc force-pushed the stronger-warnings-about-layout branch from 273b392 to b0e6d27 Compare July 21, 2022 01:02
@workingjubilee workingjubilee merged commit b5f9d43 into rust-lang:master Jul 21, 2022
@workingjubilee
Copy link
Member

Thank you for following up on this!

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.

3 participants