Skip to content

Commit

Permalink
Rollup merge of rust-lang#94122 - GuillaumeGomez:miniz-oxide-std, r=n…
Browse files Browse the repository at this point in the history
…otriddle

Fix miniz_oxide types showing up in std docs

Fixes rust-lang#90526.

Thanks to ``````@camelid,`````` I rediscovered `doc(masked)`, allowing us to prevent `miniz_oxide` type to show up in std docs.

r? ``````@notriddle``````
  • Loading branch information
matthiaskrgr authored Feb 19, 2022
2 parents c7de631 + b78123c commit ee373d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ extern crate libc;
#[allow(unused_extern_crates)]
extern crate unwind;

#[doc(masked)]
#[allow(unused_extern_crates)]
extern crate miniz_oxide;

// During testing, this crate is not actually the "real" std library, but rather
// it links to the real std library, which was compiled from this same source
// code. So any lang items std defines are conditionally excluded (or else they
Expand Down

0 comments on commit ee373d2

Please sign in to comment.