diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2020-01-07 23:21:24 +0000 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2020-01-07 23:21:24 +0000 |
| commit | 40571995984a0f2c466f77955e7d147887c2179b (patch) | |
| tree | 6b67f9b224fb24410bb81db6d77587dc261d62fa | |
| parent | 56446fef49d73212f63ea7aa0680d5d602f19b9a (diff) | |
| download | rust-40571995984a0f2c466f77955e7d147887c2179b.tar.gz rust-40571995984a0f2c466f77955e7d147887c2179b.zip | |
rustdoc: Don't allow `#![feature(...)]` on stable or beta
| -rw-r--r-- | src/librustdoc/core.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index 50d62027c8c..efac0d28d3b 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, |
