Unexpected trait bound not satisfied related to std::io::Write
#125235
Labels
C-bug
Category: This is a bug.
regression-untriaged
Untriaged performance or correctness regression.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
When I tried to build the documentation for
zip
crate v1.3.0 (cargo doc
), it failed with unexpected errors (see zopfli-rs/zopfli#42). There seems to be no problem up to Rust 1.74.0, but the error occurs with Rust 1.75.0 or later.Code
I tried this code:
https://github.com/zopfli-rs/zopfli/blob/5cea5a62d791e16440e8556feb663cffd3e888cf/src/deflate.rs#L23-L156
https://github.com/zopfli-rs/zopfli/blob/5cea5a62d791e16440e8556feb663cffd3e888cf/src/gzip.rs#L3-L97
https://github.com/zopfli-rs/zopfli/blob/5cea5a62d791e16440e8556feb663cffd3e888cf/src/zlib.rs#L3-L90
I expected to see this happen: Successfully build the documentation.
Instead, this happened:
The trait
std::io::Write
seems to be implemented fordeflate::DeflateEncoder<W>
, so I think it satisfies the trait bound.Version it worked on
It most recently worked on: Rust 1.74.0
Version with regression
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: