Skip to content

Commit

Permalink
rustdoc: Don't allow #![feature(...)] on stable or beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ollie27 committed Jan 7, 2020
1 parent 56446fe commit 4057199
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4057199

Please sign in to comment.