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

pest_deconstruct no longer works with modern Rust due to "uninitialized". #21

Open
vi opened this issue Aug 25, 2021 · 0 comments
Open

Comments

@vi
Copy link

vi commented Aug 25, 2021

This crate uses std::mem:uninitialized which was limited and now panics more often. This seem to prevent usage of pest-deconstruct:

thread 'main' panicked at 'attempted to leave type `std::iter::Peekable<pest::iterators::Pairs<parse::parser::Rule>>` uninitialized, which is invalid', /mnt/fluff/vi/src/rustc_codegen_cranelift/build_sysroot/sysroot_src/library/core/src/mem/mod.rs:663:9
stack backtrace:
   0: rust_begin_unwind
             at /mnt/fluff/vi/src/rustc_codegen_cranelift/build_sysroot/sysroot_src/library/std/src/panicking.rs:515:5
   1: core::panicking::panic_fmt
             at /mnt/fluff/vi/src/rustc_codegen_cranelift/build_sysroot/sysroot_src/library/core/src/panicking.rs:92:14
   2: core::panicking::panic
             at /mnt/fluff/vi/src/rustc_codegen_cranelift/build_sysroot/sysroot_src/library/core/src/panicking.rs:50:5
   3: core::mem::uninitialized
             at /mnt/fluff/vi/src/rustc_codegen_cranelift/build_sysroot/sysroot_src/library/core/src/mem/mod.rs:663:9
   4: pest_deconstruct::PestDeconstructor<R>::discard
             at /home/vi/.cargo/registry/src/github.com-1ecc6299db9ec823/pest-deconstruct-0.2.0/src/lib.rs:167:34
...
@vi vi changed the title No longer works with modern Rust due to "uninitialized". pest_deconstruct no longer works with modern Rust due to "uninitialized". Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant