@@ -12,7 +12,7 @@ use rustc::mir::{
12
12
Place , PlaceBase , PlaceProjection , ProjectionElem , Rvalue , Statement , StatementKind ,
13
13
Static , StaticKind , TerminatorKind , VarBindingForm ,
14
14
} ;
15
- use rustc:: ty:: { self , DefIdTree } ;
15
+ use rustc:: ty:: { self , DefIdTree , Ty } ;
16
16
use rustc:: ty:: layout:: VariantIdx ;
17
17
use rustc:: ty:: print:: Print ;
18
18
use rustc_data_structures:: fx:: FxHashSet ;
@@ -918,7 +918,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
918
918
borrow : & BorrowData < ' tcx > ,
919
919
( place, drop_span) : ( & Place < ' tcx > , Span ) ,
920
920
kind : Option < WriteKind > ,
921
- dropped_ty : ty :: Ty < ' tcx > ,
921
+ dropped_ty : Ty < ' tcx > ,
922
922
) {
923
923
debug ! (
924
924
"report_borrow_conflicts_with_destructor(\
@@ -1483,7 +1483,7 @@ pub(super) struct IncludingDowncast(bool);
1483
1483
enum StorageDeadOrDrop < ' tcx > {
1484
1484
LocalStorageDead ,
1485
1485
BoxedStorageDead ,
1486
- Destructor ( ty :: Ty < ' tcx > ) ,
1486
+ Destructor ( Ty < ' tcx > ) ,
1487
1487
}
1488
1488
1489
1489
impl < ' cx , ' gcx , ' tcx > MirBorrowckCtxt < ' cx , ' gcx , ' tcx > {
@@ -1787,7 +1787,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
1787
1787
/// End-user visible description of the `field_index`nth field of `ty`
1788
1788
fn describe_field_from_ty (
1789
1789
& self ,
1790
- ty : & ty :: Ty < ' _ > ,
1790
+ ty : Ty < ' _ > ,
1791
1791
field : Field ,
1792
1792
variant_index : Option < VariantIdx >
1793
1793
) -> String {
@@ -2258,18 +2258,18 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
2258
2258
#[ derive( Debug ) ]
2259
2259
enum AnnotatedBorrowFnSignature < ' tcx > {
2260
2260
NamedFunction {
2261
- arguments : Vec < ( ty :: Ty < ' tcx > , Span ) > ,
2262
- return_ty : ty :: Ty < ' tcx > ,
2261
+ arguments : Vec < ( Ty < ' tcx > , Span ) > ,
2262
+ return_ty : Ty < ' tcx > ,
2263
2263
return_span : Span ,
2264
2264
} ,
2265
2265
AnonymousFunction {
2266
- argument_ty : ty :: Ty < ' tcx > ,
2266
+ argument_ty : Ty < ' tcx > ,
2267
2267
argument_span : Span ,
2268
- return_ty : ty :: Ty < ' tcx > ,
2268
+ return_ty : Ty < ' tcx > ,
2269
2269
return_span : Span ,
2270
2270
} ,
2271
2271
Closure {
2272
- argument_ty : ty :: Ty < ' tcx > ,
2272
+ argument_ty : Ty < ' tcx > ,
2273
2273
argument_span : Span ,
2274
2274
} ,
2275
2275
}
@@ -2355,7 +2355,7 @@ impl<'tcx> AnnotatedBorrowFnSignature<'tcx> {
2355
2355
impl < ' cx , ' gcx , ' tcx > MirBorrowckCtxt < ' cx , ' gcx , ' tcx > {
2356
2356
/// Return the name of the provided `Ty` (that must be a reference) with a synthesized lifetime
2357
2357
/// name where required.
2358
- fn get_name_for_ty ( & self , ty : ty :: Ty < ' tcx > , counter : usize ) -> String {
2358
+ fn get_name_for_ty ( & self , ty : Ty < ' tcx > , counter : usize ) -> String {
2359
2359
let mut s = String :: new ( ) ;
2360
2360
let mut printer = ty:: print:: FmtPrinter :: new ( self . infcx . tcx , & mut s, Namespace :: TypeNS ) ;
2361
2361
@@ -2378,7 +2378,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
2378
2378
2379
2379
/// Returns the name of the provided `Ty` (that must be a reference)'s region with a
2380
2380
/// synthesized lifetime name where required.
2381
- fn get_region_name_for_ty ( & self , ty : ty :: Ty < ' tcx > , counter : usize ) -> String {
2381
+ fn get_region_name_for_ty ( & self , ty : Ty < ' tcx > , counter : usize ) -> String {
2382
2382
let mut s = String :: new ( ) ;
2383
2383
let mut printer = ty:: print:: FmtPrinter :: new ( self . infcx . tcx , & mut s, Namespace :: TypeNS ) ;
2384
2384
0 commit comments