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

iter_vec_raw has undefined behaviour with fixed-size arrays of zero-size types #9890

Closed
thestinger opened this issue Oct 16, 2013 · 1 comment
Labels
A-codegen Area: Code generation

Comments

@thestinger
Copy link
Contributor

It indexes past the end of the object with inbounds GEP. This function should likely special case zero-size types and use a counter, like the library implementation of an iterator does.

@pythonesque
Copy link
Contributor

I'm going to try to take this one on.

@bors bors closed this as completed in eee892c Oct 30, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 17, 2022
Don't suggest removing `mut` from references in `redundant_static_lifetimes`

fixes rust-lang#9890
changelog: `redundant_static_lifetimes`: Don't suggest removing `mut` from references
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation
Projects
None yet
Development

No branches or pull requests

2 participants