Skip to content

Commit 4057199

Browse files
committed
rustdoc: Don't allow #![feature(...)] on stable or beta
1 parent 56446fe commit 4057199

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
@@ -302,8 +302,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
302302
cg: codegen_options,
303303
externs,
304304
target_triple: target,
305-
// Ensure that rustdoc works even if rustc is feature-staged
306-
unstable_features: UnstableFeatures::Allow,
305+
unstable_features: UnstableFeatures::from_environment(),
307306
actually_rustdoc: true,
308307
debugging_opts: debugging_options,
309308
error_format,

0 commit comments

Comments
 (0)