Skip to content

Commit a8728b2

Browse files
authored
Rollup merge of rust-lang#67989 - ollie27:rustdoc_unstable, r=GuillaumeGomez
rustdoc: Don't allow `#![feature(...)]` on stable or beta Fixes rust-lang#67647 r? @GuillaumeGomez
2 parents af95804 + 4057199 commit a8728b2

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
@@ -307,8 +307,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
307307
cg: codegen_options,
308308
externs,
309309
target_triple: target,
310-
// Ensure that rustdoc works even if rustc is feature-staged
311-
unstable_features: UnstableFeatures::Allow,
310+
unstable_features: UnstableFeatures::from_environment(),
312311
actually_rustdoc: true,
313312
debugging_opts: debugging_options,
314313
error_format,

0 commit comments

Comments
 (0)