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

DeflateHandler no longer works with newer versions of rustc #330

Open
AlexDaniel opened this issue Nov 24, 2020 · 0 comments · May be fixed by #334
Open

DeflateHandler no longer works with newer versions of rustc #330

AlexDaniel opened this issue Nov 24, 2020 · 0 comments · May be fixed by #334

Comments

@AlexDaniel
Copy link

See rust-lang/rust#77499 for an example of a similar issue.

In ws this is the error message when you try to use DeflateHandler:

attempted to zero-initialize type `deflate::ffi::z_stream`, which is invalid

Installing an older version with rustup makes it work: rustup install nightly-2020-09-26.

As I understand, the issue is here:

let mut stream: Box<ffi::z_stream> = Box::new(mem::zeroed());

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 a pull request may close this issue.

1 participant