Skip to content

Commit a6f2f7f

Browse files
committed
Transition rustdoc to 2018 edition
1 parent b2c6b8c commit a6f2f7f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/tools/rustdoc/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "rustdoc-tool"
33
version = "0.0.0"
44
authors = ["The Rust Project Developers"]
5+
edition = "2018"
56

67
# Cargo adds a number of paths to the dylib search path on windows, which results in
78
# the wrong rustdoc being executed. To avoid the conflicting rustdocs, we name the "tool"

src/tools/rustdoc/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(rust_2018_idioms)]
2+
13
#![feature(link_args)]
24

35
#[allow(unused_attributes)]
@@ -10,6 +12,4 @@
1012
// See src/rustc/rustc.rs for the corresponding rustc settings.
1113
extern {}
1214

13-
extern crate rustdoc;
14-
1515
fn main() { rustdoc::main() }

0 commit comments

Comments
 (0)