-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Deserialization in serde panics in rustc 1.48+ with some enum inner types #812
Comments
nicodemus26
changed the title
Deserialization in serde panics in rustc 1.48+ with
Deserialization in serde panics in rustc 1.48+ with enum interior types
Dec 17, 2020
This minimal example triggers the failure:
|
With 1.47:
|
nicodemus26
changed the title
Deserialization in serde panics in rustc 1.48+ with enum interior types
Deserialization in serde panics in rustc 1.48+ with some enum inner types
Dec 17, 2020
Thank you for noticing this. I will release the version 0.23.2 with a fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This error presents as:
attempted to leave type `nalgebra::ArrayStorage<...>` uninitialized, which is invalid
This line of code panics:
nalgebra/src/base/array_storage.rs
Line 380 in c0f4ee6
This panic is mentioned in the 1.48 detailed notes as
The tracking issue for this is here: rust-lang/rust#66151
The way
visit_seq
is implemented looks like it should correctly initialize the whole matrix or drop the partially initialized matrix and return anErr
. Can this function use a compiler version switch to useMaybeUninit::uninit().assume_init()
mentioned in the std::mem::uninitialized deprecation notes?The text was updated successfully, but these errors were encountered: