-
Notifications
You must be signed in to change notification settings - Fork 105
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
Make extend_vec_zeroed
and insert_vec_zeroed
fallible
#1653
Labels
blocking-next-release
This issue should be resolved before we release on crates.io
Comments
joshlf
added
the
blocking-next-release
This issue should be resolved before we release on crates.io
label
Sep 15, 2024
joshlf
added a commit
that referenced
this issue
Sep 15, 2024
They now return `AllocError` on allocation failure. `insert_vec_zeroed` still panics if its `position` argument is out-of-bounds. Closes #1653
joshlf
added a commit
that referenced
this issue
Sep 15, 2024
They now return `AllocError` on allocation failure. `insert_vec_zeroed` still panics if its `position` argument is out-of-bounds. This requires using `Vec::try_reserve`, which is unstable before 1.57.0. Since our MSRV is currently 1.56.0, these functions are now conditionally compiled and only available on 1.57.0 and later. Closes #1653
joshlf
added a commit
that referenced
this issue
Sep 15, 2024
They now return `AllocError` on allocation failure. `insert_vec_zeroed` still panics if its `position` argument is out-of-bounds. This requires using `Vec::try_reserve`, which is unstable before 1.57.0. Since our MSRV is currently 1.56.0, these functions are now conditionally compiled and only available on 1.57.0 and later. Closes #1653
joshlf
added a commit
that referenced
this issue
Sep 15, 2024
They now return `AllocError` on allocation failure. `insert_vec_zeroed` still panics if its `position` argument is out-of-bounds. This requires using `Vec::try_reserve`, which is unstable before 1.57.0. Since our MSRV is currently 1.56.0, these functions are now conditionally compiled and only available on 1.57.0 and later. Closes #1653
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 15, 2024
They now return `AllocError` on allocation failure. `insert_vec_zeroed` still panics if its `position` argument is out-of-bounds. This requires using `Vec::try_reserve`, which is unstable before 1.57.0. Since our MSRV is currently 1.56.0, these functions are now conditionally compiled and only available on 1.57.0 and later. Closes #1653
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow up on #1478 to make
extend_vec_zeroed
andinsert_vec_zeroed
return errors on allocation failure.The text was updated successfully, but these errors were encountered: