-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Functions in const declarations ignore lifetimes, mutability, violate memory safety #22382
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
Milestone
Comments
Nominating, this seems incredibly serious. |
According to @eddyb it seems that the borrowck |
Um, yeah, not good. I'll investigate soonish, presuming @eddyb doesn't get there first. |
P-back-compatlang, 1.0 beta |
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Feb 23, 2015
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Feb 24, 2015
Apply borrowck to fns that appear in const declarations. Fixes rust-lang#22382. r? @eddyb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Functions defined inside of
const
declarations seem to ignore all lifetimes and mutability. This allows for massively violating the safety guarantees of Rust:The text was updated successfully, but these errors were encountered: