diff --git a/src/common.rs b/src/common.rs index 3e1d76d..882c8be 100644 --- a/src/common.rs +++ b/src/common.rs @@ -373,7 +373,6 @@ impl Config { #[cfg(feature = "tmp")] mod config_tempdir { use std::ops; - use tempfile; pub struct ConfigWithTemp { pub config: super::Config, diff --git a/src/json.rs b/src/json.rs index 42d6cdc..58f4f9c 100644 --- a/src/json.rs +++ b/src/json.rs @@ -10,7 +10,6 @@ use errors::{Error, ErrorKind}; use runtest::ProcRes; -use serde_json; use std::path::Path; use std::str::FromStr; diff --git a/src/read2.rs b/src/read2.rs index 402f0ff..442c910 100644 --- a/src/read2.rs +++ b/src/read2.rs @@ -35,7 +35,6 @@ mod imp { #[cfg(unix)] mod imp { - use libc; use std::io; use std::io::prelude::*; use std::mem; diff --git a/src/runtest.rs b/src/runtest.rs index 943b15d..d153fcd 100644 --- a/src/runtest.rs +++ b/src/runtest.rs @@ -14,7 +14,6 @@ use common::{Assembly, Incremental, MirOpt, RunMake, Ui}; use common::{Codegen, CodegenUnits, DebugInfoGdb, DebugInfoLldb, Rustdoc}; use common::{CompileFail, ParseFail, Pretty, RunFail, RunPass, RunPassValgrind}; use common::{Config, TestPaths}; -use diff; use errors::{self, Error, ErrorKind}; use filetime::FileTime; use header::TestProps; diff --git a/test-project/tests/pretty/macro.pp b/test-project/tests/pretty/macro.pp index 6a05149..b954ee4 100644 --- a/test-project/tests/pretty/macro.pp +++ b/test-project/tests/pretty/macro.pp @@ -8,6 +8,6 @@ //@pretty-mode:expanded //@pp-exact:macro.pp -macro_rules! square { ($x : expr) => { $x * $x } ; } +macro_rules! square { ($x:expr) => { $x * $x }; } fn f() -> i8 { 5 * 5 } diff --git a/test-project/tests/ui/dyn-keyword.stderr b/test-project/tests/ui/dyn-keyword.stderr index 2533a77..6df4cc2 100644 --- a/test-project/tests/ui/dyn-keyword.stderr +++ b/test-project/tests/ui/dyn-keyword.stderr @@ -12,5 +12,5 @@ note: the lint level is defined here 14 | #![deny(keyword_idents)] | ^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to 1 previous error