@@ -12,7 +12,7 @@ use rustc::mir::{
1212 Place , PlaceBase , PlaceProjection , ProjectionElem , Rvalue , Statement , StatementKind ,
1313 Static , StaticKind , TerminatorKind , VarBindingForm ,
1414} ;
15- use rustc:: ty:: { self , DefIdTree } ;
15+ use rustc:: ty:: { self , DefIdTree , Ty } ;
1616use rustc:: ty:: layout:: VariantIdx ;
1717use rustc:: ty:: print:: Print ;
1818use rustc_data_structures:: fx:: FxHashSet ;
@@ -918,7 +918,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
918918 borrow : & BorrowData < ' tcx > ,
919919 ( place, drop_span) : ( & Place < ' tcx > , Span ) ,
920920 kind : Option < WriteKind > ,
921- dropped_ty : ty :: Ty < ' tcx > ,
921+ dropped_ty : Ty < ' tcx > ,
922922 ) {
923923 debug ! (
924924 "report_borrow_conflicts_with_destructor(\
@@ -1483,7 +1483,7 @@ pub(super) struct IncludingDowncast(bool);
14831483enum StorageDeadOrDrop < ' tcx > {
14841484 LocalStorageDead ,
14851485 BoxedStorageDead ,
1486- Destructor ( ty :: Ty < ' tcx > ) ,
1486+ Destructor ( Ty < ' tcx > ) ,
14871487}
14881488
14891489impl < ' cx , ' gcx , ' tcx > MirBorrowckCtxt < ' cx , ' gcx , ' tcx > {
@@ -1787,7 +1787,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
17871787 /// End-user visible description of the `field_index`nth field of `ty`
17881788 fn describe_field_from_ty (
17891789 & self ,
1790- ty : & ty :: Ty < ' _ > ,
1790+ ty : Ty < ' _ > ,
17911791 field : Field ,
17921792 variant_index : Option < VariantIdx >
17931793 ) -> String {
@@ -2258,18 +2258,18 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
22582258#[ derive( Debug ) ]
22592259enum AnnotatedBorrowFnSignature < ' tcx > {
22602260 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 > ,
22632263 return_span : Span ,
22642264 } ,
22652265 AnonymousFunction {
2266- argument_ty : ty :: Ty < ' tcx > ,
2266+ argument_ty : Ty < ' tcx > ,
22672267 argument_span : Span ,
2268- return_ty : ty :: Ty < ' tcx > ,
2268+ return_ty : Ty < ' tcx > ,
22692269 return_span : Span ,
22702270 } ,
22712271 Closure {
2272- argument_ty : ty :: Ty < ' tcx > ,
2272+ argument_ty : Ty < ' tcx > ,
22732273 argument_span : Span ,
22742274 } ,
22752275}
@@ -2355,7 +2355,7 @@ impl<'tcx> AnnotatedBorrowFnSignature<'tcx> {
23552355impl < ' cx , ' gcx , ' tcx > MirBorrowckCtxt < ' cx , ' gcx , ' tcx > {
23562356 /// Return the name of the provided `Ty` (that must be a reference) with a synthesized lifetime
23572357 /// 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 {
23592359 let mut s = String :: new ( ) ;
23602360 let mut printer = ty:: print:: FmtPrinter :: new ( self . infcx . tcx , & mut s, Namespace :: TypeNS ) ;
23612361
@@ -2378,7 +2378,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
23782378
23792379 /// Returns the name of the provided `Ty` (that must be a reference)'s region with a
23802380 /// 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 {
23822382 let mut s = String :: new ( ) ;
23832383 let mut printer = ty:: print:: FmtPrinter :: new ( self . infcx . tcx , & mut s, Namespace :: TypeNS ) ;
23842384
0 commit comments