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

fail_bounds_check incorrectly casts temporary to static #11976

Closed
brson opened this issue Feb 1, 2014 · 0 comments · Fixed by #12357
Closed

fail_bounds_check incorrectly casts temporary to static #11976

brson opened this issue Feb 1, 2014 · 0 comments · Fixed by #12357
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@brson
Copy link
Contributor

brson commented Feb 1, 2014

fail_bounds_check creates an error string dynamically, then passes it as an unsafe pointer to fail_, which then casts the string to &'static str, then to ~Any, then throws it to another task.

Nominating.

@bors bors closed this as completed in aa06bf4 Feb 18, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 27, 2025
Closes rust-lang#11976

changelog: [`map_entry`]: fix FP inside closure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant