Skip to content

Update piston dependencies#40

Merged
coeuvre merged 1 commit into
coeuvre:masterfrom
tormol:fix_rust_1.48
Mar 17, 2023
Merged

Update piston dependencies#40
coeuvre merged 1 commit into
coeuvre:masterfrom
tormol:fix_rust_1.48

Conversation

@tormol

@tormol tormol commented Mar 13, 2023

Copy link
Copy Markdown
Contributor

To fix panic from mem::uninitialized() when compiled with Rust >= 1.48.

To fix panic from mem::uninitialized() when
compiled with Rust >= 1.48.
@tormol

tormol commented Mar 14, 2023

Copy link
Copy Markdown
Contributor Author

Panic message:

thread 'main' panicked at 'attempted to leave type `&back_end::PositionFormat` uninitialized, which is invalid', library/core/src/panicking.rs:123:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_nounwind_fmt
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:93:14
   2: core::panicking::panic_nounwind
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:123:5
   3: <gfx_graphics::back_end::PositionFormat as gfx::pso::buffer::Structure<gfx_core::format::Format>>::query
   4: <gfx_graphics::back_end::pipe_colored::Init as gfx::pso::PipelineInit>::link_to
   5: gfx_graphics::back_end::Gfx2d<R>::new
   6: <piston_window::PistonWindow<W> as window::BuildFromWindowSettings>::build_from_window_settings
   7: rust_2048::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread caused non-unwinding panic. aborting.
Aborted

@tormol

tormol commented Mar 14, 2023

Copy link
Copy Markdown
Contributor Author

I've merged this together with #32 and #39 on the master branch of my fork.

@coeuvre

coeuvre commented Mar 17, 2023

Copy link
Copy Markdown
Owner

Thanks!

@tormol tormol deleted the fix_rust_1.48 branch March 17, 2023 23:14
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

Successfully merging this pull request may close these issues.

2 participants