提交 9b0b5b45 编写于 作者: A Alex Crichton

Remove not(stage0) from deny(warnings)

Historically this was done to accommodate bugs in lints, but there hasn't been a
bug in a lint since this feature was added which the warnings affected. Let's
completely purge warnings from all our stages by denying warnings in all stages.
This will also assist in tracking down `stage0` code to be removed whenever
we're updating the bootstrap compiler.
上级 4ecc85be
......@@ -70,7 +70,7 @@
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
#![no_std]
#![needs_allocator]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(allocator)]
#![feature(box_syntax)]
......
......@@ -16,7 +16,7 @@
reason = "this library is unlikely to be stabilized in its current \
form or name",
issue = "27783")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(allocator)]
#![feature(libc)]
#![feature(staged_api)]
......
......@@ -12,7 +12,7 @@
#![crate_type = "rlib"]
#![no_std]
#![allocator]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![unstable(feature = "alloc_system",
reason = "this library is unlikely to be stabilized in its current \
form or name",
......
......@@ -26,7 +26,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
test(no_crate_inject, attr(deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(alloc)]
#![feature(core_intrinsics)]
......
......@@ -27,7 +27,7 @@
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
#![cfg_attr(test, allow(deprecated))] // rand
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(alloc)]
#![feature(allow_internal_unstable)]
......
......@@ -65,7 +65,7 @@
#![no_core]
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(allow_internal_unstable)]
#![feature(asm)]
......
......@@ -22,7 +22,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
test(attr(deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(libc)]
#![feature(staged_api)]
......
......@@ -23,7 +23,7 @@
html_root_url = "https://doc.rust-lang.org/nightly/",
html_playground_url = "https://play.rust-lang.org/",
test(attr(deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(staged_api)]
#![feature(unicode)]
......
......@@ -90,6 +90,7 @@
test(attr(deny(warnings))))]
#![deny(missing_docs)]
#![deny(warnings)]
#![feature(staged_api)]
use self::Name::*;
......@@ -968,7 +969,6 @@ fn t(s: &str, i: usize, u: &[String]) {
#[cfg(test)]
mod tests {
use super::*;
use super::Fail::*;
use std::result::Result::{Err, Ok};
use std::result;
......
......@@ -292,7 +292,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
test(attr(allow(unused_variables), deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(str_escape)]
......
......@@ -168,7 +168,7 @@
html_playground_url = "https://play.rust-lang.org/",
test(attr(deny(warnings))))]
#![deny(missing_docs)]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(staged_api)]
......
......@@ -21,7 +21,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(staged_api)]
......
......@@ -30,7 +30,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(alloc)]
#![feature(core_intrinsics)]
......
......@@ -30,7 +30,7 @@
#![unstable(feature = "proc_macro_lib", issue = "27812")]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![deny(missing_docs)]
#![feature(rustc_private)]
......
......@@ -80,7 +80,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(staged_api)]
#![feature(rustc_diagnostic_macros)]
......
......@@ -52,7 +52,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(staged_api)]
#![feature(rustc_private)]
......
......@@ -23,7 +23,7 @@
html_root_url = "https://doc.rust-lang.org/nightly/",
html_playground_url = "https://play.rust-lang.org/",
test(attr(deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![no_std]
#![unstable(feature = "rand",
reason = "use `rand` from crates.io",
......
......@@ -21,7 +21,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(associated_consts)]
#![feature(box_patterns)]
......
......@@ -28,7 +28,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(box_syntax)]
#![feature(const_fn)]
......
......@@ -15,7 +15,7 @@
#![crate_type = "rlib"]
#![no_std]
#![unstable(feature = "rustc_private", issue = "27812")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
//! A typesafe bitmask flag generator.
......
......@@ -15,7 +15,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![allow(non_camel_case_types)]
......
......@@ -23,7 +23,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(nonzero)]
#![feature(rustc_private)]
......
......@@ -21,7 +21,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(box_syntax)]
#![feature(libc)]
......
......@@ -15,7 +15,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(custom_attribute)]
#![allow(unused_attributes)]
......
......@@ -17,7 +17,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(rustc_private)]
#![feature(staged_api)]
......
......@@ -26,7 +26,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![cfg_attr(test, feature(test))]
#![feature(box_patterns)]
......
......@@ -20,7 +20,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(associated_consts)]
#![feature(box_syntax)]
......
......@@ -15,7 +15,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(box_patterns)]
#![feature(conservative_impl_trait)]
......
......@@ -17,7 +17,7 @@
#![crate_name = "rustc_mir"]
#![crate_type = "rlib"]
#![crate_type = "dylib"]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![unstable(feature = "rustc_private", issue = "27812")]
#![feature(associated_consts)]
......
......@@ -21,7 +21,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(rustc_diagnostic_macros)]
#![feature(staged_api)]
......
......@@ -13,7 +13,7 @@
#![crate_type = "dylib"]
#![crate_type = "rlib"]
#![feature(staged_api)]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![allow(bad_style)]
pub struct Intrinsic {
......
......@@ -57,7 +57,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(staged_api)]
#![feature(rustc_diagnostic_macros)]
......
......@@ -15,7 +15,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)]
......
......@@ -15,7 +15,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(associated_consts)]
#![feature(rustc_diagnostic_macros)]
......
......@@ -15,7 +15,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(custom_attribute)]
#![allow(unused_attributes)]
......
......@@ -21,7 +21,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(associated_consts)]
#![feature(box_patterns)]
......
......@@ -70,7 +70,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![allow(non_camel_case_types)]
......
......@@ -16,7 +16,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
html_playground_url = "https://play.rust-lang.org/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(box_patterns)]
#![feature(box_syntax)]
......
......@@ -25,7 +25,7 @@
html_root_url = "https://doc.rust-lang.org/nightly/",
html_playground_url = "https://play.rust-lang.org/",
test(attr(allow(unused_variables), deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(box_syntax)]
#![feature(collections)]
......
......@@ -225,7 +225,7 @@
// Turn warnings into errors, but only after stage0, where it can be useful for
// code to emit warnings during language transitions
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
// std may use features in a platform-specific way
#![allow(unused_features)]
......
......@@ -29,7 +29,7 @@
html_playground_url = "https://play.rust-lang.org/",
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![no_std]
#![feature(char_escape_debug)]
......
......@@ -22,7 +22,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
test(attr(deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(associated_consts)]
#![feature(const_fn)]
......
......@@ -17,7 +17,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(proc_macro_lib)]
#![feature(proc_macro_internals)]
......
......@@ -21,7 +21,7 @@
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(custom_attribute)]
#![allow(unused_attributes)]
......
......@@ -52,7 +52,7 @@
html_playground_url = "https://play.rust-lang.org/",
test(attr(deny(warnings))))]
#![deny(missing_docs)]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(box_syntax)]
#![feature(staged_api)]
......
......@@ -31,7 +31,7 @@
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/nightly/",
test(attr(deny(warnings))))]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(asm)]
#![feature(libc)]
......
......@@ -12,7 +12,7 @@
#![crate_name = "unwind"]
#![crate_type = "rlib"]
#![unstable(feature = "panic_unwind", issue = "32837")]
#![cfg_attr(not(stage0), deny(warnings))]
#![deny(warnings)]
#![feature(cfg_target_vendor)]
#![feature(staged_api)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册