diff --git a/serde/src/lib.rs b/serde/src/lib.rs index 527a680a..92ff3b3f 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -105,7 +105,7 @@ // discussion of these features please refer to this issue: // // https://github.com/serde-rs/serde/issues/812 -#![cfg_attr(feature = "unstable", feature(never_type))] +#![cfg_attr(all(feature = "unstable", docsrs), feature(never_type))] #![allow( unknown_lints, bare_trait_objects,