@@ -83,15 +83,15 @@ mod generator_interior;
83
83
pub mod intrinsic;
84
84
mod op;
85
85
86
- use astconv:: { AstConv , PathSeg } ;
86
+ use crate :: astconv:: { AstConv , PathSeg } ;
87
87
use errors:: { Applicability , DiagnosticBuilder , DiagnosticId } ;
88
88
use rustc:: hir:: { self , ExprKind , GenericArg , ItemKind , Node , PatKind , QPath } ;
89
89
use rustc:: hir:: def:: { CtorKind , Def } ;
90
90
use rustc:: hir:: def_id:: { CrateNum , DefId , LOCAL_CRATE } ;
91
91
use rustc:: hir:: intravisit:: { self , Visitor , NestedVisitorMap } ;
92
92
use rustc:: hir:: itemlikevisit:: ItemLikeVisitor ;
93
- use middle:: lang_items;
94
- use namespace:: Namespace ;
93
+ use crate :: middle:: lang_items;
94
+ use crate :: namespace:: Namespace ;
95
95
use rustc:: infer:: { self , InferCtxt , InferOk , InferResult , RegionVariableOrigin } ;
96
96
use rustc:: infer:: canonical:: { Canonical , OriginalQueryValues , QueryResponse } ;
97
97
use rustc_data_structures:: indexed_vec:: Idx ;
@@ -130,14 +130,14 @@ use std::mem::replace;
130
130
use std:: ops:: { self , Deref } ;
131
131
use std:: slice;
132
132
133
- use require_c_abi_if_variadic;
134
- use session:: { CompileIncomplete , Session } ;
135
- use session:: config:: EntryFnType ;
136
- use TypeAndSubsts ;
137
- use lint;
138
- use util:: captures:: Captures ;
139
- use util:: common:: { ErrorReported , indenter} ;
140
- use util:: nodemap:: { DefIdMap , DefIdSet , FxHashMap , FxHashSet , NodeMap } ;
133
+ use crate :: require_c_abi_if_variadic;
134
+ use crate :: session:: { CompileIncomplete , Session } ;
135
+ use crate :: session:: config:: EntryFnType ;
136
+ use crate :: TypeAndSubsts ;
137
+ use crate :: lint;
138
+ use crate :: util:: captures:: Captures ;
139
+ use crate :: util:: common:: { ErrorReported , indenter} ;
140
+ use crate :: util:: nodemap:: { DefIdMap , DefIdSet , FxHashMap , FxHashSet , NodeMap } ;
141
141
142
142
pub use self :: Expectation :: * ;
143
143
use self :: autoderef:: Autoderef ;
@@ -3044,7 +3044,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
3044
3044
// arguments which we skipped above.
3045
3045
if variadic {
3046
3046
fn variadic_error < ' tcx > ( s : & Session , span : Span , t : Ty < ' tcx > , cast_ty : & str ) {
3047
- use structured_errors:: { VariadicError , StructuredDiagnostic } ;
3047
+ use crate :: structured_errors:: { VariadicError , StructuredDiagnostic } ;
3048
3048
VariadicError :: new ( s, span, t, cast_ty) . diagnostic ( ) . emit ( ) ;
3049
3049
}
3050
3050
@@ -3685,8 +3685,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
3685
3685
display
3686
3686
}
3687
3687
3688
- fn no_such_field_err < T : Display > ( & self , span : Span , field : T , expr_t : & ty:: TyS )
3689
- -> DiagnosticBuilder {
3688
+ fn no_such_field_err < T : Display > ( & self , span : Span , field : T , expr_t : & ty:: TyS < ' _ > )
3689
+ -> DiagnosticBuilder < ' _ > {
3690
3690
type_error_struct ! ( self . tcx( ) . sess, span, expr_t, E0609 ,
3691
3691
"no field `{}` on type `{}`" ,
3692
3692
field, expr_t)
@@ -5257,7 +5257,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
5257
5257
& self ,
5258
5258
blk : & ' gcx hir:: Block ,
5259
5259
expected_ty : Ty < ' tcx > ,
5260
- err : & mut DiagnosticBuilder ,
5260
+ err : & mut DiagnosticBuilder < ' _ > ,
5261
5261
) {
5262
5262
if let Some ( span_semi) = self . could_remove_semicolon ( blk, expected_ty) {
5263
5263
err. span_suggestion (
@@ -5725,7 +5725,7 @@ fn fatally_break_rust(sess: &Session) {
5725
5725
) ;
5726
5726
handler. note_without_error ( & format ! ( "rustc {} running on {}" ,
5727
5727
option_env!( "CFG_VERSION" ) . unwrap_or( "unknown_version" ) ,
5728
- :: session:: config:: host_triple( ) ,
5728
+ crate :: session:: config:: host_triple( ) ,
5729
5729
) ) ;
5730
5730
}
5731
5731
0 commit comments