File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
librustc_mir/transform/nll Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -47,16 +47,16 @@ macro_rules! newtype_index {
47
47
48
48
impl Idx for $name {
49
49
fn new( value: usize ) -> Self {
50
- assert!( value < ( u32 :: MAX ) as usize ) ;
50
+ assert!( value < ( :: std :: u32 :: MAX ) as usize ) ;
51
51
$name( value as u32 )
52
52
}
53
53
fn index( self ) -> usize {
54
54
self . 0 as usize
55
55
}
56
56
}
57
57
58
- impl Debug for $name {
59
- fn fmt( & self , fmt: & mut Formatter ) -> fmt:: Result {
58
+ impl :: std :: fmt :: Debug for $name {
59
+ fn fmt( & self , fmt: & mut :: std :: fmt :: Formatter ) -> :: std :: fmt:: Result {
60
60
write!( fmt, "{}{}" , $debug_name, self . 0 )
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ use rustc::util::nodemap::FxHashSet;
19
19
use rustc_data_structures:: indexed_vec:: { IndexVec , Idx } ;
20
20
use syntax_pos:: DUMMY_SP ;
21
21
use std:: collections:: HashMap ;
22
- use std:: fmt:: { self , Debug , Formatter } ;
23
- use std:: u32;
24
22
25
23
#[ allow( dead_code) ]
26
24
struct NLLVisitor < ' a , ' gcx : ' a + ' tcx , ' tcx : ' a > {
You can’t perform that action at this time.
0 commit comments