Skip to content

Conversation

@thestinger
Copy link
Contributor

malloc already returns memory correctly aligned for every possible
type in standard C, and that's enough for all types in Rust too

`malloc` already returns memory correctly aligned for every possible
type in standard C, and that's enough for all types in Rust too
@thestinger
Copy link
Contributor Author

Landing as part of #7657.

@thestinger thestinger closed this Jul 8, 2013
@thestinger thestinger deleted the alloc branch July 8, 2013 23:25
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 30, 2021
Fixed issues with to_radians and to_degrees lints

fixes rust-lang#7651

I fixed the original problem as described in the issue, but the bug remains for complex expressions (the commented out TC I added is an example). I would also love some feedback on how to cleanup my code and reduce duplication. I hope it's not a problem that the issue has been claimed by someone else - that was over two months ago.

changelog: ``[`suboptimal_flops`]`` no longer proposes broken code with `to_radians` and `to_degrees`
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.

1 participant