Rollup merge of #58114 - h-michael:tidy-unstable-book-gen-2018, r=Centril

Transition tidy and unstable-book-gen to 2018 edition

Transitions tidy and unstable-book-gen to Rust 2018; cc #58099
This commit is contained in:
kennytm 2019-02-06 00:29:00 +09:00 committed by GitHub
commit 3f731d56b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,7 @@
//! etc. This is run by default on `make check` and as part of the auto
//! builders.
#![deny(rust_2018_idioms)]
#![deny(warnings)]
extern crate tidy;

View File

@ -1,7 +1,7 @@
use std::collections::BTreeSet;
use std::fs;
use std::path;
use features::{collect_lang_features, collect_lib_features, Features, Status};
use crate::features::{collect_lang_features, collect_lib_features, Features, Status};
pub const PATH_STR: &str = "doc/unstable-book/src";

View File

@ -4,6 +4,7 @@ authors = ["est31 <MTest31@outlook.com>",
name = "unstable-book-gen"
version = "0.1.0"
license = "MIT/Apache-2.0"
edition = "2018"
[dependencies]
tidy = { path = "../tidy" }

View File

@ -1,8 +1,9 @@
//! Auto-generate stub docs for the unstable book
#![deny(rust_2018_idioms)]
#![deny(warnings)]
extern crate tidy;
use tidy::features::{Feature, Features, collect_lib_features, collect_lang_features};
use tidy::unstable_book::{collect_unstable_feature_names, collect_unstable_book_section_file_names,