diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index 50d62027c8c6d..efac0d28d3b54 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -302,8 +302,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt cg: codegen_options, externs, target_triple: target, - // Ensure that rustdoc works even if rustc is feature-staged - unstable_features: UnstableFeatures::Allow, + unstable_features: UnstableFeatures::from_environment(), actually_rustdoc: true, debugging_opts: debugging_options, error_format,