about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-07 13:57:54 +0800
committerGitHub <noreply@github.com>2019-02-07 13:57:54 +0800
commitc0a135f541d7e984a16a56cc8ec6473baa6337e9 (patch)
tree076455d519c146b7b4a03fc15e5f6561155cb9f1
parentd05313db26110f6350e099f87a38296be0eae8d4 (diff)
parentd4a60e01d158d508b50427167c399ef2a964bddd (diff)
Rollup merge of #58225 - taiki-e:librustc_fs_util-2018, r=Centril
librustc_fs_util => 2018

Transitions `librustc_fs_util` to Rust 2018; cc #58099

r? @Centril
-rw-r--r--src/librustc_fs_util/Cargo.toml1
-rw-r--r--src/librustc_fs_util/lib.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_fs_util/Cargo.toml b/src/librustc_fs_util/Cargo.toml
index e40b44204b3..47918643f31 100644
--- a/src/librustc_fs_util/Cargo.toml
+++ b/src/librustc_fs_util/Cargo.toml
@@ -2,6 +2,7 @@
 authors = ["The Rust Project Developers"]
 name = "rustc_fs_util"
 version = "0.0.0"
+edition = "2018"
 
 [lib]
 name = "rustc_fs_util"
diff --git a/src/librustc_fs_util/lib.rs b/src/librustc_fs_util/lib.rs
index 74ff121f803..340681d65c3 100644
--- a/src/librustc_fs_util/lib.rs
+++ b/src/librustc_fs_util/lib.rs
@@ -1,3 +1,5 @@
+#![deny(rust_2018_idioms)]
+
 use std::path::{Path, PathBuf};
 use std::ffi::CString;
 use std::fs;