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 } ;
8
8
use diff;
9
- use errors:: { self , Error , ErrorKind } ;
9
+ use crate :: errors:: { self , Error , ErrorKind } ;
10
10
use filetime:: FileTime ;
11
- use header:: TestProps ;
12
- use json;
11
+ use crate :: header:: TestProps ;
12
+ use crate :: json;
13
13
use regex:: Regex ;
14
14
use rustfix:: { apply_suggestions, get_suggestions_from_json, Filter } ;
15
- use util:: { logv, PathBufExt } ;
15
+ use crate :: util:: { logv, PathBufExt } ;
16
16
17
17
use std:: collections:: hash_map:: DefaultHasher ;
18
18
use std:: collections:: { HashMap , HashSet , VecDeque } ;
@@ -27,8 +27,8 @@ use std::path::{Path, PathBuf};
27
27
use std:: process:: { Child , Command , ExitStatus , Output , Stdio } ;
28
28
use std:: str;
29
29
30
- use extract_gdb_version;
31
- use is_android_gdb_target;
30
+ use crate :: extract_gdb_version;
31
+ use crate :: is_android_gdb_target;
32
32
33
33
#[ cfg( windows) ]
34
34
fn disable_error_reporting < F : FnOnce ( ) -> R , R > ( f : F ) -> R {
@@ -1937,7 +1937,7 @@ impl<'test> TestCx<'test> {
1937
1937
}
1938
1938
1939
1939
fn make_cmdline ( & self , command : & Command , libpath : & str ) -> String {
1940
- use util;
1940
+ use crate :: util;
1941
1941
1942
1942
// Linux and mac don't require adjusting the library search path
1943
1943
if cfg ! ( unix) {
@@ -3255,7 +3255,7 @@ impl<'test> TestCx<'test> {
3255
3255
}
3256
3256
3257
3257
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 ) ;
3259
3259
fs:: write ( & stamp, compute_stamp_hash ( & self . config ) ) . unwrap ( ) ;
3260
3260
}
3261
3261
}
@@ -3311,7 +3311,7 @@ impl<T> fmt::Debug for ExpectedLine<T>
3311
3311
where
3312
3312
T : AsRef < str > + fmt:: Debug ,
3313
3313
{
3314
- fn fmt ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
3314
+ fn fmt ( & self , formatter : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
3315
3315
if let & ExpectedLine :: Text ( ref t) = self {
3316
3316
write ! ( formatter, "{:?}" , t)
3317
3317
} else {
@@ -3334,7 +3334,7 @@ fn nocomment_mir_line(line: &str) -> &str {
3334
3334
}
3335
3335
3336
3336
fn read2_abbreviated ( mut child : Child ) -> io:: Result < Output > {
3337
- use read2:: read2;
3337
+ use crate :: read2:: read2;
3338
3338
use std:: mem:: replace;
3339
3339
3340
3340
const HEAD_LEN : usize = 160 * 1024 ;
0 commit comments