Remove lint annotations in specific crates that are already enforced by rustbuild

Remove some random unnecessary lint `allow`s
This commit is contained in:
Vadim Petrochenkov 2019-07-23 20:34:17 +03:00
parent 0cfb2f7fbd
commit 434152157f
119 changed files with 146 additions and 322 deletions

View File

@ -5,7 +5,8 @@
//! parent directory, and otherwise documentation can be found throughout the `build`
//! directory in each respective module.
#![deny(warnings)]
// NO-RUSTC-WRAPPER
#![deny(warnings, rust_2018_idioms)]
use std::env;

View File

@ -15,7 +15,8 @@
//! switching compilers for the bootstrap and for build scripts will probably
//! never get replaced.
#![deny(warnings)]
// NO-RUSTC-WRAPPER
#![deny(warnings, rust_2018_idioms)]
use std::env;
use std::ffi::OsString;

View File

@ -2,7 +2,8 @@
//!
//! See comments in `src/bootstrap/rustc.rs` for more information.
#![deny(warnings)]
// NO-RUSTC-WRAPPER
#![deny(warnings, rust_2018_idioms)]
use std::env;
use std::process::Command;

View File

@ -103,8 +103,9 @@
//! More documentation can be found in each respective module below, and you can
//! also check out the `src/bootstrap/README.md` file for more information.
#![deny(rust_2018_idioms)]
#![deny(warnings)]
// NO-RUSTC-WRAPPER
#![deny(warnings, rust_2018_idioms)]
#![feature(core_intrinsics)]
#![feature(drain_filter)]

View File

@ -1,4 +1,5 @@
#![deny(rust_2018_idioms)]
// NO-RUSTC-WRAPPER
#![deny(warnings, rust_2018_idioms)]
use std::fs::File;
use std::path::{Path, PathBuf};

View File

@ -62,8 +62,6 @@
#![warn(missing_docs)]
#![warn(missing_debug_implementations)]
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
#![deny(rust_2018_idioms)]
#![allow(explicit_outlives_requirements)]
#![cfg_attr(not(test), feature(generator_trait))]

View File

@ -8,7 +8,6 @@
#![feature(trusted_len)]
#![feature(try_reserve)]
#![feature(unboxed_closures)]
#![deny(rust_2018_idioms)]
use std::hash::{Hash, Hasher};
use std::collections::hash_map::DefaultHasher;

View File

@ -11,7 +11,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
test(no_crate_inject, attr(deny(warnings))))]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(core_intrinsics)]

View File

@ -62,8 +62,6 @@
#![warn(missing_docs)]
#![warn(missing_debug_implementations)]
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
#![deny(rust_2018_idioms)]
#![allow(explicit_outlives_requirements)]
#![feature(allow_internal_unstable)]

View File

@ -32,7 +32,6 @@
#![feature(const_fn)]
#![feature(iter_partition_in_place)]
#![feature(iter_is_partitioned)]
#![warn(rust_2018_idioms)]
extern crate test;

View File

@ -8,7 +8,6 @@
html_playground_url = "https://play.rust-lang.org/",
test(attr(deny(warnings))))]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(nll)]

View File

@ -274,8 +274,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
test(attr(allow(unused_variables), deny(warnings))))]
#![deny(rust_2018_idioms)]
#![feature(nll)]
use LabelText::*;

View File

@ -10,7 +10,6 @@
#![panic_runtime]
#![allow(unused_features)]
#![deny(rust_2018_idioms)]
#![feature(core_intrinsics)]
#![feature(libc)]

View File

@ -17,8 +17,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
#![deny(rust_2018_idioms)]
#![feature(core_intrinsics)]
#![feature(lang_items)]
#![feature(libc)]

View File

@ -17,8 +17,6 @@
test(no_crate_inject, attr(deny(warnings))),
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut))))]
#![deny(rust_2018_idioms)]
#![feature(nll)]
#![feature(staged_api)]
#![feature(const_fn)]

View File

@ -7,4 +7,3 @@
#![allow(unused_features)]
#![feature(nll)]
#![feature(staged_api)]
#![deny(rust_2018_idioms)]

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
// Error messages for EXXXX errors.
// Each message should start and end with a new line, and be wrapped to 80 characters.
// In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.

View File

@ -28,7 +28,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(arbitrary_self_types)]
@ -81,8 +80,7 @@ extern crate libc;
// Use the test crate here so we depend on getopts through it. This allow tools to link to both
// librustc_driver and libtest.
#[allow(unused_extern_crates)]
extern crate test;
extern crate test as _;
#[macro_use]
mod macros;

View File

@ -1628,7 +1628,7 @@ impl RustcOptGroup {
// *unstable* options, i.e., options that are only enabled when the
// user also passes the `-Z unstable-options` debugging flag.
mod opt {
// The `fn opt_u` etc below are written so that we can use them
// The `fn flag*` etc below are written so that we can use them
// in the future; do not warn about them not being used right now.
#![allow(dead_code)]

View File

@ -1,4 +1,4 @@
#![allow(warnings)]
#![allow(unused_imports)] // `cfg(parallel_compiler)`
use std::mem;
use std::process;
@ -138,6 +138,7 @@ impl<'tcx> QueryJob<'tcx> {
self.latch.set();
}
#[cfg(parallel_compiler)]
fn as_ptr(&self) -> *const QueryJob<'tcx> {
self as *const _
}

View File

@ -32,7 +32,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms)]
#![feature(nll)]

View File

@ -6,5 +6,3 @@
#![unstable(feature = "sanitizer_runtime_lib",
reason = "internal implementation detail of sanitizers",
issue = "0")]
#![deny(rust_2018_idioms)]

View File

@ -1,7 +1,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![allow(non_camel_case_types)]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(in_band_lifetimes)]

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
register_long_diagnostics! {
E0511: r##"

View File

@ -1,5 +1,3 @@
#![allow(non_upper_case_globals)]
use crate::attributes;
use crate::llvm;
use crate::llvm_util;

View File

@ -12,7 +12,6 @@
#![feature(crate_visibility_modifier)]
#![feature(extern_types)]
#![feature(in_band_lifetimes)]
#![allow(unused_attributes)]
#![feature(libc)]
#![feature(nll)]
#![feature(rustc_diagnostic_macros)]
@ -22,7 +21,6 @@
#![feature(static_nobundle)]
#![feature(trusted_len)]
#![feature(mem_take)]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
use back::write::{create_target_machine, create_informational_target_machine};

View File

@ -1,3 +1,6 @@
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
use super::debuginfo::{
DIBuilder, DIDescriptor, DIFile, DILexicalBlock, DISubprogram, DIType,
DIBasicType, DIDerivedType, DICompositeType, DIScope, DIVariable,

View File

@ -1,7 +1,4 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![deny(bare_trait_objects)]
pub use self::IntPredicate::*;
pub use self::RealPredicate::*;

View File

@ -1,5 +1,3 @@
#![allow(non_upper_case_globals)]
pub use crate::llvm::Type;
use crate::llvm;

View File

@ -781,12 +781,6 @@ impl CrateInfo {
}
}
fn is_codegened_item(tcx: TyCtxt<'_>, id: DefId) -> bool {
let (all_mono_items, _) =
tcx.collect_and_partition_mono_items(LOCAL_CRATE);
all_mono_items.contains(&id)
}
pub fn provide_both(providers: &mut Providers<'_>) {
providers.backend_optimization_level = |tcx, cratenum| {
let for_speed = match tcx.sess.opts.optimize {

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
register_long_diagnostics! {
E0668: r##"

View File

@ -11,9 +11,6 @@
#![feature(nll)]
#![feature(trusted_len)]
#![feature(mem_take)]
#![allow(unused_attributes)]
#![allow(dead_code)]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![recursion_limit="256"]

View File

@ -5,8 +5,6 @@
//! This API is completely unstable and subject to change.
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(warnings)]
#![feature(box_syntax)]
use std::any::Any;
use std::sync::mpsc;

View File

@ -10,13 +10,11 @@
#![feature(core_intrinsics)]
#![feature(never_type)]
#![feature(nll)]
#![allow(unused_attributes)]
#![feature(rustc_diagnostic_macros)]
#![feature(in_band_lifetimes)]
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#[macro_use]

View File

@ -26,7 +26,6 @@
#![cfg_attr(unix, feature(libc))]
#![cfg_attr(test, feature(test))]
#![deny(rust_2018_idioms)]
#![cfg_attr(not(bootstrap), allow(rustc::default_hash_types))]
#[macro_use]

View File

@ -16,7 +16,6 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
pub extern crate getopts;

View File

@ -5,11 +5,9 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![feature(crate_visibility_modifier)]
#![allow(unused_attributes)]
#![cfg_attr(unix, feature(libc))]
#![feature(nll)]
#![feature(optin_builtin_traits)]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
pub use emitter::ColorConfig;

View File

@ -1,5 +1,3 @@
#![deny(rust_2018_idioms)]
use std::path::{Path, PathBuf};
use std::ffi::CString;
use std::fs;

View File

@ -8,7 +8,6 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#[macro_use] extern crate rustc;

View File

@ -12,7 +12,6 @@ use rustc_data_structures::OnDrop;
use rustc_data_structures::sync::Lrc;
use rustc_data_structures::fx::{FxHashSet, FxHashMap};
use rustc_metadata::cstore::CStore;
use std::io::Write;
use std::path::PathBuf;
use std::result;
use std::sync::{Arc, Mutex};

View File

@ -6,11 +6,8 @@
#![feature(generators)]
#![cfg_attr(unix, feature(libc))]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![allow(unused_imports)]
#![recursion_limit="256"]
#[cfg(unix)]

View File

@ -2,7 +2,7 @@ use crate::interface::{Compiler, Result};
use crate::util;
use crate::proc_macro_decls;
use log::{debug, info, warn, log_enabled};
use log::{info, warn, log_enabled};
use rustc::dep_graph::DepGraph;
use rustc::hir;
use rustc::hir::lowering::lower_crate;
@ -10,13 +10,11 @@ use rustc::hir::def_id::{CrateNum, LOCAL_CRATE};
use rustc::lint;
use rustc::middle::{self, reachable, resolve_lifetime, stability};
use rustc::middle::cstore::CrateStore;
use rustc::middle::privacy::AccessLevels;
use rustc::ty::{self, AllArenas, Resolutions, TyCtxt, GlobalCtxt};
use rustc::ty::steal::Steal;
use rustc::traits;
use rustc::util::common::{time, ErrorReported};
use rustc::util::profiling::ProfileCategory;
use rustc::session::{CompileResult, CrateDisambiguator, Session};
use rustc::session::Session;
use rustc::session::config::{self, CrateType, Input, OutputFilenames, OutputType};
use rustc::session::search_paths::PathKind;
use rustc_allocator as allocator;
@ -25,31 +23,27 @@ use rustc_codegen_ssa::back::link::emit_metadata;
use rustc_codegen_utils::codegen_backend::CodegenBackend;
use rustc_codegen_utils::link::filename_for_metadata;
use rustc_data_structures::{box_region_allow_access, declare_box_region_type, parallel};
use rustc_data_structures::fingerprint::Fingerprint;
use rustc_data_structures::stable_hasher::StableHasher;
use rustc_data_structures::sync::{Lrc, ParallelIterator, par_iter};
use rustc_incremental;
use rustc_incremental::DepGraphFuture;
use rustc_metadata::creader::CrateLoader;
use rustc_metadata::cstore::{self, CStore};
use rustc_mir as mir;
use rustc_passes::{self, ast_validation, hir_stats, loops, rvalue_promotion, layout_test};
use rustc_passes::{self, ast_validation, hir_stats, layout_test};
use rustc_plugin as plugin;
use rustc_plugin::registry::Registry;
use rustc_privacy;
use rustc_resolve::{Resolver, ResolverArenas};
use rustc_traits;
use rustc_typeck as typeck;
use syntax::{self, ast, attr, diagnostics, visit};
use syntax::{self, ast, diagnostics, visit};
use syntax::early_buffered_lints::BufferedEarlyLint;
use syntax::ext::base::{NamedSyntaxExtension, ExtCtxt};
use syntax::mut_visit::MutVisitor;
use syntax::parse::{self, PResult};
use syntax::util::node_count::NodeCounter;
use syntax::util::lev_distance::find_best_match_for_name;
use syntax::symbol::Symbol;
use syntax::feature_gate::AttributeType;
use syntax_pos::{FileName, edition::Edition, hygiene};
use syntax_pos::FileName;
use syntax_ext;
use rustc_serialize::json;
@ -61,12 +55,11 @@ use std::ffi::OsString;
use std::fs;
use std::io::{self, Write};
use std::iter;
use std::path::{Path, PathBuf};
use std::path::PathBuf;
use std::sync::mpsc;
use std::cell::RefCell;
use std::rc::Rc;
use std::mem;
use std::ops::Generator;
pub fn parse<'a>(sess: &'a Session, input: &Input) -> PResult<'a, ast::Crate> {
sess.diagnostic()

View File

@ -2,30 +2,18 @@ use crate::interface::{Compiler, Result};
use crate::passes::{self, BoxedResolver, ExpansionResult, BoxedGlobalCtxt, PluginInfo};
use rustc_incremental::DepGraphFuture;
use rustc_data_structures::sync::Lrc;
use rustc::session::config::{Input, OutputFilenames, OutputType};
use rustc::session::Session;
use rustc::session::config::{OutputFilenames, OutputType};
use rustc::util::common::{time, ErrorReported};
use rustc::util::profiling::ProfileCategory;
use rustc::lint;
use rustc::hir;
use rustc::hir::def_id::LOCAL_CRATE;
use rustc::ty;
use rustc::ty::steal::Steal;
use rustc::dep_graph::DepGraph;
use rustc_passes::hir_stats;
use rustc_plugin::registry::Registry;
use rustc_serialize::json;
use std::cell::{Ref, RefMut, RefCell};
use std::ops::Deref;
use std::rc::Rc;
use std::sync::mpsc;
use std::any::Any;
use std::mem;
use syntax::parse::{self, PResult};
use syntax::util::node_count::NodeCounter;
use syntax::{self, ast, attr, diagnostics, visit};
use syntax_pos::hygiene;
use syntax::{self, ast};
/// Represent the result of a query.
/// This result can be stolen with the `take` method and returned with the `give` method.

View File

@ -19,7 +19,6 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#[macro_use]

View File

@ -1,4 +1,3 @@
#![deny(rust_2018_idioms)]
#![feature(nll)]
#![feature(static_nobundle)]

View File

@ -6,5 +6,3 @@
#![unstable(feature = "sanitizer_runtime_lib",
reason = "internal implementation detail of sanitizers",
issue = "0")]
#![deny(rust_2018_idioms)]

View File

@ -1,5 +1,4 @@
#![feature(proc_macro_hygiene)]
#![deny(rust_2018_idioms)]
#![cfg_attr(not(bootstrap), allow(rustc::default_hash_types))]
#![recursion_limit="128"]

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
use syntax::{register_diagnostics, register_long_diagnostics};
register_long_diagnostics! {

View File

@ -15,7 +15,6 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
extern crate libc;

View File

@ -1,7 +1,5 @@
//! This pass type-checks the MIR to ensure it is not broken.
#![allow(unreachable_code)]
use crate::borrow_check::borrow_set::BorrowSet;
use crate::borrow_check::location::LocationTable;
use crate::borrow_check::nll::constraints::{OutlivesConstraintSet, OutlivesConstraint};

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
register_long_diagnostics! {

View File

@ -26,7 +26,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#[macro_use] extern crate log;

View File

@ -6,5 +6,3 @@
#![unstable(feature = "sanitizer_runtime_lib",
reason = "internal implementation detail of sanitizers",
issue = "0")]
#![deny(rust_2018_idioms)]

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
use syntax::{register_diagnostics, register_long_diagnostics};
register_long_diagnostics! {

View File

@ -13,7 +13,6 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#[macro_use]

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
use syntax::{register_diagnostics, register_long_diagnostics};
register_long_diagnostics! {

View File

@ -59,8 +59,6 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
pub use registry::Registry;
mod error_codes;

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
register_long_diagnostics! {
E0445: r##"

View File

@ -1,6 +1,5 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(in_band_lifetimes)]

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
use syntax::{register_diagnostics, register_long_diagnostics};
// Error messages for EXXXX errors. Each message should start and end with a

View File

@ -10,7 +10,6 @@
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
pub use rustc::hir::def::{Namespace, PerNS};

View File

@ -1,8 +1,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![feature(nll)]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![allow(unused_attributes)]
#![recursion_limit="256"]

View File

@ -1,5 +1,3 @@
#![allow(non_upper_case_globals)]
use crate::abi::call::{FnType, ArgType};
fn classify_ret_ty<Ty>(ret: &mut ArgType<'_, Ty>) {

View File

@ -13,7 +13,6 @@
#![feature(nll)]
#![feature(slice_patterns)]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#[macro_use] extern crate log;

View File

@ -1,7 +1,6 @@
//! New recursive solver modeled on Chalk's recursive solver. Most of
//! the guts are broken up into modules; see the comments in those modules.
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(crate_visibility_modifier)]

View File

@ -6,5 +6,3 @@
#![unstable(feature = "sanitizer_runtime_lib",
reason = "internal implementation detail of sanitizers",
issue = "0")]
#![deny(rust_2018_idioms)]

View File

@ -1,7 +1,5 @@
// ignore-tidy-filelength
#![allow(non_snake_case)]
register_long_diagnostics! {
E0023: r##"

View File

@ -73,7 +73,6 @@ This API is completely unstable and subject to change.
#![recursion_limit="256"]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#[macro_use] extern crate log;

View File

@ -1,4 +1,3 @@
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",

View File

@ -8,8 +8,6 @@ Core encoding and decoding interfaces.
html_playground_url = "https://play.rust-lang.org/",
test(attr(allow(unused_variables), deny(warnings))))]
#![deny(rust_2018_idioms)]
#![feature(box_syntax)]
#![feature(core_intrinsics)]
#![feature(specialization)]

View File

@ -1,5 +1,3 @@
#![deny(warnings)]
use std::env;
fn main() {

View File

@ -209,8 +209,6 @@
#![warn(missing_docs)]
#![warn(missing_debug_implementations)]
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
#![deny(rust_2018_idioms)]
#![allow(explicit_outlives_requirements)]
// Tell the compiler to link to either panic_abort or panic_unwind

View File

@ -123,7 +123,6 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt<'_>,
MacEager::items(smallvec![])
}
#[allow(deprecated)]
pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt<'_>,
span: Span,
token_tree: &[TokenTree])
@ -149,7 +148,7 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt<'_>,
ecx.span_bug(span, &format!(
"error writing metadata for triple `{}` and crate `{}`, error: {}, \
cause: {:?}",
target_triple, crate_name, e.description(), e.cause()
target_triple, crate_name, e.description(), e.source()
));
}
});

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
// Error messages for EXXXX errors.
// Each message should start and end with a new line, and be wrapped to 80 characters.
// In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.

View File

@ -122,7 +122,6 @@ struct Diagnostic {
}
#[derive(RustcEncodable)]
#[allow(unused_attributes)]
struct DiagnosticSpan {
file_name: String,
byte_start: u32,

View File

@ -7,7 +7,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
test(attr(deny(warnings))))]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(bind_by_move_pattern_guards)]

View File

@ -1,5 +1,3 @@
#![allow(non_snake_case)]
use syntax::register_long_diagnostics;
// Error messages for EXXXX errors.

View File

@ -3,7 +3,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(crate_visibility_modifier)]

View File

@ -6,7 +6,6 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
#![deny(unused_lifetimes)]
#![feature(const_fn)]

View File

@ -35,8 +35,6 @@
test(attr(deny(warnings))))]
#![deny(missing_docs)]
#![deny(rust_2018_idioms)]
#![cfg_attr(windows, feature(libc))]
use std::io::prelude::*;

View File

@ -17,7 +17,6 @@
// this crate, which relies on this attribute (rather than the value of `--crate-name` passed by
// cargo) to detect this crate.
#![deny(rust_2018_idioms)]
#![crate_name = "test"]
#![unstable(feature = "test", issue = "27812")]
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/", test(attr(deny(warnings))))]

View File

@ -1,8 +1,6 @@
#![no_std]
#![unstable(feature = "panic_unwind", issue = "32837")]
#![deny(rust_2018_idioms)]
#![feature(link_cfg)]
#![feature(nll)]
#![feature(staged_api)]

View File

@ -2,8 +2,7 @@
extern crate rustc;
extern crate rustc_interface;
#[allow(unused_extern_crates)]
extern crate rustc_driver;
extern crate rustc_driver as _;
extern crate syntax;
use rustc::session::DiagnosticOutput;

View File

@ -5,7 +5,6 @@
// libsyntax is not compiled for it.
#![deny(plugin_as_library)]
#![allow(unused_extern_crates)]
extern crate attr_plugin_test; //~ ERROR compiler plugin used as an ordinary library

View File

@ -1,5 +1,5 @@
error: compiler plugin used as an ordinary library
--> $DIR/plugin-as-extern-crate.rs:10:1
--> $DIR/plugin-as-extern-crate.rs:9:1
|
LL | extern crate attr_plugin_test;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -6,7 +6,6 @@
#![deny(non_snake_case)] // To trigger a hard error
// Shouldn't generate a warning about unstable features
#[allow(unused_extern_crates)]
extern crate stability_cfg2;
pub fn BOGUS() { } //~ ERROR

View File

@ -1,5 +1,5 @@
error: function `BOGUS` should have a snake case name
--> $DIR/enable-unstable-lib-feature.rs:12:8
--> $DIR/enable-unstable-lib-feature.rs:11:8
|
LL | pub fn BOGUS() { }
| ^^^^^ help: convert the identifier to snake case: `bogus`

View File

@ -1,4 +1,4 @@
#![allow(unused_extern_crates, non_camel_case_types)]
#![allow(non_camel_case_types)]
extern crate alloc;

View File

@ -1,5 +1,4 @@
#![feature(rustc_private)]
#![allow(unused_extern_crates)]
extern crate alloc;

View File

@ -1,5 +1,5 @@
error[E0259]: the name `alloc` is defined multiple times
--> $DIR/E0259.rs:6:1
--> $DIR/E0259.rs:5:1
|
LL | extern crate alloc;
| ------------------- previous import of the extern crate `alloc` here

View File

@ -1,5 +1,3 @@
#![allow(unused_extern_crates)]
extern crate alloc;
mod alloc {

View File

@ -1,5 +1,5 @@
error[E0260]: the name `alloc` is defined multiple times
--> $DIR/E0260.rs:5:1
--> $DIR/E0260.rs:3:1
|
LL | extern crate alloc;
| ------------------- previous import of the extern crate `alloc` here

View File

@ -1,7 +1,6 @@
// aux-build:issue-36881-aux.rs
fn main() {
#[allow(unused_extern_crates)]
extern crate issue_36881_aux;
use issue_36881_aux::Foo; //~ ERROR unresolved import
}

View File

@ -1,5 +1,5 @@
error[E0432]: unresolved import `issue_36881_aux`
--> $DIR/issue-36881.rs:6:9
--> $DIR/issue-36881.rs:5:9
|
LL | use issue_36881_aux::Foo;
| ^^^^^^^^^^^^^^^ maybe a missing `extern crate issue_36881_aux;`?

View File

@ -5,7 +5,6 @@
// aux-build:stability-cfg2.rs
// ignore-tidy-linelength
#![warn(deprecated)]
#![allow(dead_code, unused_extern_crates)]
#![feature(staged_api, unstable_test_feature)]
#![stable(feature = "rust1", since = "1.0.0")]

View File

@ -1,5 +1,5 @@
warning: use of deprecated item 'lint_stability::deprecated': text
--> $DIR/lint-stability-deprecated.rs:26:9
--> $DIR/lint-stability-deprecated.rs:25:9
|
LL | deprecated();
| ^^^^^^^^^^
@ -11,625 +11,625 @@ LL | #![warn(deprecated)]
| ^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:31:9
--> $DIR/lint-stability-deprecated.rs:30:9
|
LL | Trait::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:33:9
--> $DIR/lint-stability-deprecated.rs:32:9
|
LL | <Foo as Trait>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:35:9
--> $DIR/lint-stability-deprecated.rs:34:9
|
LL | deprecated_text();
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:40:9
--> $DIR/lint-stability-deprecated.rs:39:9
|
LL | Trait::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:42:9
--> $DIR/lint-stability-deprecated.rs:41:9
|
LL | <Foo as Trait>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:44:9
--> $DIR/lint-stability-deprecated.rs:43:9
|
LL | deprecated_unstable();
| ^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:49:9
--> $DIR/lint-stability-deprecated.rs:48:9
|
LL | Trait::trait_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:51:9
--> $DIR/lint-stability-deprecated.rs:50:9
|
LL | <Foo as Trait>::trait_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:53:9
--> $DIR/lint-stability-deprecated.rs:52:9
|
LL | deprecated_unstable_text();
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:58:9
--> $DIR/lint-stability-deprecated.rs:57:9
|
LL | Trait::trait_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:60:9
--> $DIR/lint-stability-deprecated.rs:59:9
|
LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedStruct': text
--> $DIR/lint-stability-deprecated.rs:107:17
--> $DIR/lint-stability-deprecated.rs:106:17
|
LL | let _ = DeprecatedStruct {
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedUnstableStruct': text
--> $DIR/lint-stability-deprecated.rs:110:17
--> $DIR/lint-stability-deprecated.rs:109:17
|
LL | let _ = DeprecatedUnstableStruct {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedUnitStruct': text
--> $DIR/lint-stability-deprecated.rs:117:17
--> $DIR/lint-stability-deprecated.rs:116:17
|
LL | let _ = DeprecatedUnitStruct;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedUnstableUnitStruct': text
--> $DIR/lint-stability-deprecated.rs:118:17
--> $DIR/lint-stability-deprecated.rs:117:17
|
LL | let _ = DeprecatedUnstableUnitStruct;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Enum::DeprecatedVariant': text
--> $DIR/lint-stability-deprecated.rs:122:17
--> $DIR/lint-stability-deprecated.rs:121:17
|
LL | let _ = Enum::DeprecatedVariant;
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Enum::DeprecatedUnstableVariant': text
--> $DIR/lint-stability-deprecated.rs:123:17
--> $DIR/lint-stability-deprecated.rs:122:17
|
LL | let _ = Enum::DeprecatedUnstableVariant;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedTupleStruct': text
--> $DIR/lint-stability-deprecated.rs:127:17
--> $DIR/lint-stability-deprecated.rs:126:17
|
LL | let _ = DeprecatedTupleStruct (1);
| ^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedUnstableTupleStruct': text
--> $DIR/lint-stability-deprecated.rs:128:17
--> $DIR/lint-stability-deprecated.rs:127:17
|
LL | let _ = DeprecatedUnstableTupleStruct (1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:137:25
--> $DIR/lint-stability-deprecated.rs:136:25
|
LL | macro_test_arg!(deprecated_text());
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:138:25
--> $DIR/lint-stability-deprecated.rs:137:25
|
LL | macro_test_arg!(deprecated_unstable_text());
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:139:41
--> $DIR/lint-stability-deprecated.rs:138:41
|
LL | macro_test_arg!(macro_test_arg!(deprecated_text()));
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:144:9
--> $DIR/lint-stability-deprecated.rs:143:9
|
LL | Trait::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:146:9
--> $DIR/lint-stability-deprecated.rs:145:9
|
LL | <Foo as Trait>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:148:9
--> $DIR/lint-stability-deprecated.rs:147:9
|
LL | Trait::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:150:9
--> $DIR/lint-stability-deprecated.rs:149:9
|
LL | <Foo as Trait>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:152:9
--> $DIR/lint-stability-deprecated.rs:151:9
|
LL | Trait::trait_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:154:9
--> $DIR/lint-stability-deprecated.rs:153:9
|
LL | <Foo as Trait>::trait_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:156:9
--> $DIR/lint-stability-deprecated.rs:155:9
|
LL | Trait::trait_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:158:9
--> $DIR/lint-stability-deprecated.rs:157:9
|
LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedTrait': text
--> $DIR/lint-stability-deprecated.rs:186:10
--> $DIR/lint-stability-deprecated.rs:185:10
|
LL | impl DeprecatedTrait for S {}
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedTrait': text
--> $DIR/lint-stability-deprecated.rs:188:25
--> $DIR/lint-stability-deprecated.rs:187:25
|
LL | trait LocalTrait2 : DeprecatedTrait { }
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'inheritance::inherited_stability::unstable_mod::deprecated': text
--> $DIR/lint-stability-deprecated.rs:207:9
--> $DIR/lint-stability-deprecated.rs:206:9
|
LL | unstable_mod::deprecated();
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::deprecated': text
--> $DIR/lint-stability-deprecated.rs:329:9
--> $DIR/lint-stability-deprecated.rs:328:9
|
LL | deprecated();
| ^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:334:9
--> $DIR/lint-stability-deprecated.rs:333:9
|
LL | Trait::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:336:9
--> $DIR/lint-stability-deprecated.rs:335:9
|
LL | <Foo as Trait>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:338:9
--> $DIR/lint-stability-deprecated.rs:337:9
|
LL | deprecated_text();
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:343:9
--> $DIR/lint-stability-deprecated.rs:342:9
|
LL | Trait::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:345:9
--> $DIR/lint-stability-deprecated.rs:344:9
|
LL | <Foo as Trait>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::DeprecatedStruct': text
--> $DIR/lint-stability-deprecated.rs:383:17
--> $DIR/lint-stability-deprecated.rs:382:17
|
LL | let _ = DeprecatedStruct {
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::DeprecatedUnitStruct': text
--> $DIR/lint-stability-deprecated.rs:390:17
--> $DIR/lint-stability-deprecated.rs:389:17
|
LL | let _ = DeprecatedUnitStruct;
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Enum::DeprecatedVariant': text
--> $DIR/lint-stability-deprecated.rs:394:17
--> $DIR/lint-stability-deprecated.rs:393:17
|
LL | let _ = Enum::DeprecatedVariant;
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::DeprecatedTupleStruct': text
--> $DIR/lint-stability-deprecated.rs:398:17
--> $DIR/lint-stability-deprecated.rs:397:17
|
LL | let _ = DeprecatedTupleStruct (1);
| ^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:405:9
--> $DIR/lint-stability-deprecated.rs:404:9
|
LL | Trait::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:407:9
--> $DIR/lint-stability-deprecated.rs:406:9
|
LL | <Foo as Trait>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:409:9
--> $DIR/lint-stability-deprecated.rs:408:9
|
LL | Trait::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:411:9
--> $DIR/lint-stability-deprecated.rs:410:9
|
LL | <Foo as Trait>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::test_fn_body::fn_in_body': text
--> $DIR/lint-stability-deprecated.rs:438:9
--> $DIR/lint-stability-deprecated.rs:437:9
|
LL | fn_in_body();
| ^^^^^^^^^^
warning: use of deprecated item 'this_crate::DeprecatedTrait': text
--> $DIR/lint-stability-deprecated.rs:458:10
--> $DIR/lint-stability-deprecated.rs:457:10
|
LL | impl DeprecatedTrait for S { }
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::DeprecatedTrait': text
--> $DIR/lint-stability-deprecated.rs:460:24
--> $DIR/lint-stability-deprecated.rs:459:24
|
LL | trait LocalTrait : DeprecatedTrait { }
| ^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::MethodTester::test_method_body::fn_in_body': text
--> $DIR/lint-stability-deprecated.rs:446:13
--> $DIR/lint-stability-deprecated.rs:445:13
|
LL | fn_in_body();
| ^^^^^^^^^^
warning: use of deprecated item 'lint_stability::TraitWithAssociatedTypes::TypeDeprecated': text
--> $DIR/lint-stability-deprecated.rs:99:48
--> $DIR/lint-stability-deprecated.rs:98:48
|
LL | struct S2<T: TraitWithAssociatedTypes>(T::TypeDeprecated);
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::TraitWithAssociatedTypes::TypeDeprecated': text
--> $DIR/lint-stability-deprecated.rs:103:13
--> $DIR/lint-stability-deprecated.rs:102:13
|
LL | TypeDeprecated = u16,
| ^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated': text
--> $DIR/lint-stability-deprecated.rs:27:13
--> $DIR/lint-stability-deprecated.rs:26:13
|
LL | foo.method_deprecated();
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated': text
--> $DIR/lint-stability-deprecated.rs:28:9
--> $DIR/lint-stability-deprecated.rs:27:9
|
LL | Foo::method_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated': text
--> $DIR/lint-stability-deprecated.rs:29:9
--> $DIR/lint-stability-deprecated.rs:28:9
|
LL | <Foo>::method_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:30:13
--> $DIR/lint-stability-deprecated.rs:29:13
|
LL | foo.trait_deprecated();
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:32:9
--> $DIR/lint-stability-deprecated.rs:31:9
|
LL | <Foo>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:36:13
--> $DIR/lint-stability-deprecated.rs:35:13
|
LL | foo.method_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:37:9
--> $DIR/lint-stability-deprecated.rs:36:9
|
LL | Foo::method_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:38:9
--> $DIR/lint-stability-deprecated.rs:37:9
|
LL | <Foo>::method_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:39:13
--> $DIR/lint-stability-deprecated.rs:38:13
|
LL | foo.trait_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:41:9
--> $DIR/lint-stability-deprecated.rs:40:9
|
LL | <Foo>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:45:13
--> $DIR/lint-stability-deprecated.rs:44:13
|
LL | foo.method_deprecated_unstable();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:46:9
--> $DIR/lint-stability-deprecated.rs:45:9
|
LL | Foo::method_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:47:9
--> $DIR/lint-stability-deprecated.rs:46:9
|
LL | <Foo>::method_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:48:13
--> $DIR/lint-stability-deprecated.rs:47:13
|
LL | foo.trait_deprecated_unstable();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:50:9
--> $DIR/lint-stability-deprecated.rs:49:9
|
LL | <Foo>::trait_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:54:13
--> $DIR/lint-stability-deprecated.rs:53:13
|
LL | foo.method_deprecated_unstable_text();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:55:9
--> $DIR/lint-stability-deprecated.rs:54:9
|
LL | Foo::method_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::MethodTester::method_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:56:9
--> $DIR/lint-stability-deprecated.rs:55:9
|
LL | <Foo>::method_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:57:13
--> $DIR/lint-stability-deprecated.rs:56:13
|
LL | foo.trait_deprecated_unstable_text();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:59:9
--> $DIR/lint-stability-deprecated.rs:58:9
|
LL | <Foo>::trait_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::DeprecatedStruct::i': text
--> $DIR/lint-stability-deprecated.rs:108:13
--> $DIR/lint-stability-deprecated.rs:107:13
|
LL | i: 0
| ^^^^
warning: use of deprecated item 'lint_stability::DeprecatedUnstableStruct::i': text
--> $DIR/lint-stability-deprecated.rs:112:13
--> $DIR/lint-stability-deprecated.rs:111:13
|
LL | i: 0
| ^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:143:13
--> $DIR/lint-stability-deprecated.rs:142:13
|
LL | foo.trait_deprecated();
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:145:9
--> $DIR/lint-stability-deprecated.rs:144:9
|
LL | <Foo>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:147:13
--> $DIR/lint-stability-deprecated.rs:146:13
|
LL | foo.trait_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:149:9
--> $DIR/lint-stability-deprecated.rs:148:9
|
LL | <Foo>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:151:13
--> $DIR/lint-stability-deprecated.rs:150:13
|
LL | foo.trait_deprecated_unstable();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:153:9
--> $DIR/lint-stability-deprecated.rs:152:9
|
LL | <Foo>::trait_deprecated_unstable(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:155:13
--> $DIR/lint-stability-deprecated.rs:154:13
|
LL | foo.trait_deprecated_unstable_text();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:157:9
--> $DIR/lint-stability-deprecated.rs:156:9
|
LL | <Foo>::trait_deprecated_unstable_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:174:13
--> $DIR/lint-stability-deprecated.rs:173:13
|
LL | foo.trait_deprecated();
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:175:13
--> $DIR/lint-stability-deprecated.rs:174:13
|
LL | foo.trait_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable': text
--> $DIR/lint-stability-deprecated.rs:176:13
--> $DIR/lint-stability-deprecated.rs:175:13
|
LL | foo.trait_deprecated_unstable();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'lint_stability::Trait::trait_deprecated_unstable_text': text
--> $DIR/lint-stability-deprecated.rs:177:13
--> $DIR/lint-stability-deprecated.rs:176:13
|
LL | foo.trait_deprecated_unstable_text();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::MethodTester::method_deprecated': text
--> $DIR/lint-stability-deprecated.rs:330:13
--> $DIR/lint-stability-deprecated.rs:329:13
|
LL | foo.method_deprecated();
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::MethodTester::method_deprecated': text
--> $DIR/lint-stability-deprecated.rs:331:9
--> $DIR/lint-stability-deprecated.rs:330:9
|
LL | Foo::method_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::MethodTester::method_deprecated': text
--> $DIR/lint-stability-deprecated.rs:332:9
--> $DIR/lint-stability-deprecated.rs:331:9
|
LL | <Foo>::method_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:333:13
--> $DIR/lint-stability-deprecated.rs:332:13
|
LL | foo.trait_deprecated();
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:335:9
--> $DIR/lint-stability-deprecated.rs:334:9
|
LL | <Foo>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::MethodTester::method_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:339:13
--> $DIR/lint-stability-deprecated.rs:338:13
|
LL | foo.method_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::MethodTester::method_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:340:9
--> $DIR/lint-stability-deprecated.rs:339:9
|
LL | Foo::method_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::MethodTester::method_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:341:9
--> $DIR/lint-stability-deprecated.rs:340:9
|
LL | <Foo>::method_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:342:13
--> $DIR/lint-stability-deprecated.rs:341:13
|
LL | foo.trait_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:344:9
--> $DIR/lint-stability-deprecated.rs:343:9
|
LL | <Foo>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::DeprecatedStruct::i': text
--> $DIR/lint-stability-deprecated.rs:385:13
--> $DIR/lint-stability-deprecated.rs:384:13
|
LL | i: 0
| ^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:404:13
--> $DIR/lint-stability-deprecated.rs:403:13
|
LL | foo.trait_deprecated();
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:406:9
--> $DIR/lint-stability-deprecated.rs:405:9
|
LL | <Foo>::trait_deprecated(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:408:13
--> $DIR/lint-stability-deprecated.rs:407:13
|
LL | foo.trait_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:410:9
--> $DIR/lint-stability-deprecated.rs:409:9
|
LL | <Foo>::trait_deprecated_text(&foo);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated': text
--> $DIR/lint-stability-deprecated.rs:427:13
--> $DIR/lint-stability-deprecated.rs:426:13
|
LL | foo.trait_deprecated();
| ^^^^^^^^^^^^^^^^
warning: use of deprecated item 'this_crate::Trait::trait_deprecated_text': text
--> $DIR/lint-stability-deprecated.rs:428:13
--> $DIR/lint-stability-deprecated.rs:427:13
|
LL | foo.trait_deprecated_text();
| ^^^^^^^^^^^^^^^^^^^^^

View File

@ -1,6 +1,5 @@
#![no_std]
#[allow(unused_extern_crates)]
#[macro_use(foo(bar))] //~ ERROR bad macro import
extern crate std;

View File

@ -1,5 +1,5 @@
error[E0466]: bad macro import
--> $DIR/macro-use-bad-args-1.rs:4:13
--> $DIR/macro-use-bad-args-1.rs:3:13
|
LL | #[macro_use(foo(bar))]
| ^^^^^^^^

View File

@ -1,6 +1,5 @@
#![no_std]
#[allow(unused_extern_crates)]
#[macro_use(foo="bar")] //~ ERROR bad macro import
extern crate std;

View File

@ -1,5 +1,5 @@
error[E0466]: bad macro import
--> $DIR/macro-use-bad-args-2.rs:4:13
--> $DIR/macro-use-bad-args-2.rs:3:13
|
LL | #[macro_use(foo="bar")]
| ^^^^^^^^^

Some files were not shown because too many files have changed in this diff Show More