Skip to content

Commit 076095b

Browse files
ollie27cuviper
authored andcommitted
rustdoc: Don't allow #![feature(...)] on stable or beta
(cherry picked from commit 4057199)
1 parent 84eb3b2 commit 076095b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/core.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
318318
cg: codegen_options,
319319
externs,
320320
target_triple: target,
321-
// Ensure that rustdoc works even if rustc is feature-staged
322-
unstable_features: UnstableFeatures::Allow,
321+
unstable_features: UnstableFeatures::from_environment(),
323322
actually_rustdoc: true,
324323
debugging_opts: debugging_options,
325324
error_format,

0 commit comments

Comments
 (0)