about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-02-21 17:27:55 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-02-21 17:27:55 +0100
commit910d46fd60686e031e82ee87dec14f8002f5c8f3 (patch)
treef3600a7c70afa0b20f3e34a57f2c3bd30edeee66
parent1103d2e914b67c18b0deb86073c26c6aefda761d (diff)
downloadrust-910d46fd60686e031e82ee87dec14f8002f5c8f3.tar.gz
rust-910d46fd60686e031e82ee87dec14f8002f5c8f3.zip
Correctly handle miniz_oxide extern crate declaration
-rw-r--r--library/std/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 2628afd4237..5dc586d3a2a 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -366,6 +366,7 @@ extern crate unwind;
 
 #[doc(masked)]
 #[allow(unused_extern_crates)]
+#[cfg(feature = "miniz_oxide")]
 extern crate miniz_oxide;
 
 // During testing, this crate is not actually the "real" std library, but rather