Skip to content

Make cast_slice() work only on Pod types. #999

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
merged 1 commit into from
Jul 7, 2016
Merged

Make cast_slice() work only on Pod types. #999

merged 1 commit into from
Jul 7, 2016

Conversation

vickenty
Copy link
Contributor

@vickenty vickenty commented Jul 6, 2016

This makes structures defined with gfx_vertex_struct! and
gfx_constant_struct! also marked as Pod which is not entirely
correct. These structures should only contain Pod types, but there is no
way to guarantee that.

Fixes #974.

This makes structures defined with gfx_vertex_struct! and
gfx_constant_struct! also marked as Pod which is not entirely
correct. These structures should only contain Pod types, but there is no
way to guarantee that.

Fixes #974.
@kvark
Copy link
Member

kvark commented Jul 6, 2016

Looks good to me, thanks!
@csherratt care to have a look?

@ghost
Copy link

ghost commented Jul 7, 2016

@homu r+

@homu
Copy link
Contributor

homu commented Jul 7, 2016

📌 Commit 2470e4d has been approved by csherratt

@homu homu merged commit 2470e4d into gfx-rs:master Jul 7, 2016
homu added a commit that referenced this pull request Jul 7, 2016
Make cast_slice() work only on Pod types.

This makes structures defined with gfx_vertex_struct! and
gfx_constant_struct! also marked as Pod which is not entirely
correct. These structures should only contain Pod types, but there is no
way to guarantee that.

Fixes #974.
@homu
Copy link
Contributor

homu commented Jul 7, 2016

⚡ Test exempted - status

@vickenty vickenty deleted the safe-cast-slice branch July 7, 2016 22:38
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