1- use common:: CompareMode ;
2- use common:: { expected_output_path, UI_EXTENSIONS , UI_FIXED , UI_STDERR , UI_STDOUT } ;
3- use common:: { output_base_dir, output_base_name, output_testname_unique} ;
4- use common:: { Codegen , CodegenUnits , DebugInfoBoth , DebugInfoGdb , DebugInfoLldb , Rustdoc } ;
5- use common:: { CompileFail , Pretty , RunFail , RunPass , RunPassValgrind } ;
6- use common:: { Config , TestPaths } ;
7- use common:: { Incremental , MirOpt , RunMake , Ui } ;
1+ use crate :: common:: CompareMode ;
2+ use crate :: common:: { expected_output_path, UI_EXTENSIONS , UI_FIXED , UI_STDERR , UI_STDOUT } ;
3+ use crate :: common:: { output_base_dir, output_base_name, output_testname_unique} ;
4+ use crate :: common:: { Codegen , CodegenUnits , DebugInfoBoth , DebugInfoGdb , DebugInfoLldb , Rustdoc } ;
5+ use crate :: common:: { CompileFail , Pretty , RunFail , RunPass , RunPassValgrind } ;
6+ use crate :: common:: { Config , TestPaths } ;
7+ use crate :: common:: { Incremental , MirOpt , RunMake , Ui } ;
88use diff;
9- use errors:: { self , Error , ErrorKind } ;
9+ use crate :: errors:: { self , Error , ErrorKind } ;
1010use filetime:: FileTime ;
11- use header:: TestProps ;
12- use json;
11+ use crate :: header:: TestProps ;
12+ use crate :: json;
1313use regex:: Regex ;
1414use rustfix:: { apply_suggestions, get_suggestions_from_json, Filter } ;
15- use util:: { logv, PathBufExt } ;
15+ use crate :: util:: { logv, PathBufExt } ;
1616
1717use std:: collections:: hash_map:: DefaultHasher ;
1818use std:: collections:: { HashMap , HashSet , VecDeque } ;
@@ -27,8 +27,8 @@ use std::path::{Path, PathBuf};
2727use std:: process:: { Child , Command , ExitStatus , Output , Stdio } ;
2828use std:: str;
2929
30- use extract_gdb_version;
31- use is_android_gdb_target;
30+ use crate :: extract_gdb_version;
31+ use crate :: is_android_gdb_target;
3232
3333#[ cfg( windows) ]
3434fn disable_error_reporting < F : FnOnce ( ) -> R , R > ( f : F ) -> R {
@@ -1937,7 +1937,7 @@ impl<'test> TestCx<'test> {
19371937 }
19381938
19391939 fn make_cmdline ( & self , command : & Command , libpath : & str ) -> String {
1940- use util;
1940+ use crate :: util;
19411941
19421942 // Linux and mac don't require adjusting the library search path
19431943 if cfg ! ( unix) {
@@ -3255,7 +3255,7 @@ impl<'test> TestCx<'test> {
32553255 }
32563256
32573257 fn create_stamp ( & self ) {
3258- let stamp = :: stamp ( & self . config , self . testpaths , self . revision ) ;
3258+ let stamp = crate :: stamp ( & self . config , self . testpaths , self . revision ) ;
32593259 fs:: write ( & stamp, compute_stamp_hash ( & self . config ) ) . unwrap ( ) ;
32603260 }
32613261}
@@ -3311,7 +3311,7 @@ impl<T> fmt::Debug for ExpectedLine<T>
33113311where
33123312 T : AsRef < str > + fmt:: Debug ,
33133313{
3314- fn fmt ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
3314+ fn fmt ( & self , formatter : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
33153315 if let & ExpectedLine :: Text ( ref t) = self {
33163316 write ! ( formatter, "{:?}" , t)
33173317 } else {
@@ -3334,7 +3334,7 @@ fn nocomment_mir_line(line: &str) -> &str {
33343334}
33353335
33363336fn read2_abbreviated ( mut child : Child ) -> io:: Result < Output > {
3337- use read2:: read2;
3337+ use crate :: read2:: read2;
33383338 use std:: mem:: replace;
33393339
33403340 const HEAD_LEN : usize = 160 * 1024 ;
0 commit comments