-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
vec::to_mut is probably unsafe #3354
Labels
A-typesystem
Area: The type system
Milestone
Comments
I believe it is safe, as long as it owns the copy of the vector that it transmutes. That is, uses + or - mode, in today's terminology (in a mode-less world, just having the type |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jul 26, 2020
…atthiaskrgr redundant_closure_call - don't lint when used more than once Fixes rust-lang#3354. changelog: fix redundant_closure_call false positive when closure called more than once
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Mar 9, 2024
we properly rebuild the sysroot now when MIRI_LIB_SRC contents change Thanks to RalfJung/rustc-build-sysroot#16
jaisnan
added a commit
to jaisnan/rust-dev
that referenced
this issue
Jul 29, 2024
This PR updates the feature branch verify-std to 07-16, allowing the proofs in std lib to be verified by the latest changes added in Kani. This is a subset of the main branch. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses. --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Felipe R. Monteiro <felisous@amazon.com> Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com> Co-authored-by: Michael Tautschnig <tautschn@amazon.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: tautschnig <1144736+tautschnig@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Celina G. Val <celinval@amazon.com> Co-authored-by: Matias Scharager <matias.scharager@gmail.com> Co-authored-by: Matias Scharager <mscharag@amazon.com> Co-authored-by: Justus Adam <dev@justus.science> Co-authored-by: Felipe R. Monteiro <rms.felipe@gmail.com> Co-authored-by: Artem Agvanian <nartagva@amazon.com> Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com> Co-authored-by: celinval <35149715+celinval@users.noreply.github.com> Co-authored-by: Felipe R. Monteiro <felisous@amazon.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It transmutes an immutable vector to a mutable vectors, but immutable vectors can be stored in readonly memory.
The text was updated successfully, but these errors were encountered: