diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2019-02-04 00:39:37 +0900 |
|---|---|---|
| committer | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2019-02-05 22:39:56 +0900 |
| commit | a6f2f7f15e4c4c24f9091bbbb8c56952c15ab70a (patch) | |
| tree | d218a2070217d43c3a50c2fe94722826bf2d2906 | |
| parent | b2c6b8c29f13f8d1f242da89e587960b95337819 (diff) | |
| download | rust-a6f2f7f15e4c4c24f9091bbbb8c56952c15ab70a.tar.gz rust-a6f2f7f15e4c4c24f9091bbbb8c56952c15ab70a.zip | |
Transition rustdoc to 2018 edition
| -rw-r--r-- | src/tools/rustdoc/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/tools/rustdoc/main.rs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/rustdoc/Cargo.toml b/src/tools/rustdoc/Cargo.toml index d3881500441..36aa5916da7 100644 --- a/src/tools/rustdoc/Cargo.toml +++ b/src/tools/rustdoc/Cargo.toml @@ -2,6 +2,7 @@ name = "rustdoc-tool" version = "0.0.0" authors = ["The Rust Project Developers"] +edition = "2018" # Cargo adds a number of paths to the dylib search path on windows, which results in # the wrong rustdoc being executed. To avoid the conflicting rustdocs, we name the "tool" diff --git a/src/tools/rustdoc/main.rs b/src/tools/rustdoc/main.rs index df9d2c6ba96..8bdc365c4ca 100644 --- a/src/tools/rustdoc/main.rs +++ b/src/tools/rustdoc/main.rs @@ -1,3 +1,5 @@ +#![deny(rust_2018_idioms)] + #![feature(link_args)] #[allow(unused_attributes)] @@ -10,6 +12,4 @@ // See src/rustc/rustc.rs for the corresponding rustc settings. extern {} -extern crate rustdoc; - fn main() { rustdoc::main() } |
