hyperium / h2

HTTP 2.0 client & server implementation for Rust.
MIT License
1.34k stars 269 forks source link

Move unexported macro doctest into unit test #616

Closed djkoloski closed 2 years ago

djkoloski commented 2 years ago

Nightly has begun running doctests for unexported macros as of https://github.com/rust-lang/rust/pull/96630, which caused a doctest for test_unpack_octets_4 which was previously ignored to be run. This broke the CI because macros that are not exported with #[macro_export] cannot be used from external crates (and thus cannot be doctested). This change ignores the doctest and copies the relevant code into a unit test.