From a07dc4e43c8f3d7c79114b257997b4ce37ddeab1 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 7 Feb 2019 03:46:54 +0900 Subject: [PATCH] librustc_llvm => 2018 --- src/librustc_llvm/Cargo.toml | 1 + src/librustc_llvm/build.rs | 3 --- src/librustc_llvm/lib.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/librustc_llvm/Cargo.toml b/src/librustc_llvm/Cargo.toml index 013badb71cc..0fe327d5dee 100644 --- a/src/librustc_llvm/Cargo.toml +++ b/src/librustc_llvm/Cargo.toml @@ -3,6 +3,7 @@ authors = ["The Rust Project Developers"] name = "rustc_llvm" version = "0.0.0" build = "build.rs" +edition = "2018" [lib] name = "rustc_llvm" diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index cd91fcb2995..7fa83dd9779 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -1,6 +1,3 @@ -extern crate cc; -extern crate build_helper; - use std::process::Command; use std::env; use std::path::{PathBuf, Path}; diff --git a/src/librustc_llvm/lib.rs b/src/librustc_llvm/lib.rs index ca66540fa25..99c5e2493ed 100644 --- a/src/librustc_llvm/lib.rs +++ b/src/librustc_llvm/lib.rs @@ -1,4 +1,4 @@ -#![feature(nll)] +#![deny(rust_2018_idioms)] #![feature(static_nobundle)] #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", -- 2.44.0