From d51a80c57e85f6d96c700410f8ba60d94ffaaba8 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Mon, 25 Nov 2019 17:23:48 +0100 Subject: Enable deny-warnings feature everywhere in CI --- rustc_tools_util/Cargo.toml | 4 ++++ rustc_tools_util/src/lib.rs | 2 ++ 2 files changed, 6 insertions(+) (limited to 'rustc_tools_util') diff --git a/rustc_tools_util/Cargo.toml b/rustc_tools_util/Cargo.toml index 5d37f935375..6f0fc5bee8f 100644 --- a/rustc_tools_util/Cargo.toml +++ b/rustc_tools_util/Cargo.toml @@ -9,4 +9,8 @@ license = "MIT OR Apache-2.0" keywords = ["rustc", "tool", "git", "version", "hash"] categories = ["development-tools"] edition = "2018" + [dependencies] + +[features] +deny-warnings = [] diff --git a/rustc_tools_util/src/lib.rs b/rustc_tools_util/src/lib.rs index 36b58a398dc..ff2a7de5725 100644 --- a/rustc_tools_util/src/lib.rs +++ b/rustc_tools_util/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "deny-warnings", deny(warnings))] + use std::env; #[macro_export] -- cgit 1.4.1-3-g733a5