@@ -306,26 +306,26 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
306306 -> Option < SourceScope > {
307307 assert ! ( !( visibility_scope. is_some( ) && lint_level. is_explicit( ) ) ,
308308 "can't have both a visibility and a lint scope at the same time" ) ;
309- let mut syntactic_scope = self . source_scope ;
309+ let mut scope = self . source_scope ;
310310 self . visit_bindings ( pattern, & mut |this, mutability, name, var, span, ty| {
311311 if visibility_scope. is_none ( ) {
312312 visibility_scope = Some ( this. new_source_scope ( scope_span,
313313 LintLevel :: Inherited ,
314314 None ) ) ;
315315 // If we have lints, create a new source scope
316316 // that marks the lints for the locals. See the comment
317- // on the `syntactic_source_info ` field for why this is needed.
317+ // on the `source_info ` field for why this is needed.
318318 if lint_level. is_explicit ( ) {
319- syntactic_scope =
319+ scope =
320320 this. new_source_scope ( scope_span, lint_level, None ) ;
321321 }
322322 }
323- let syntactic_source_info = SourceInfo {
323+ let source_info = SourceInfo {
324324 span,
325- scope : syntactic_scope ,
325+ scope,
326326 } ;
327327 let visibility_scope = visibility_scope. unwrap ( ) ;
328- this. declare_binding ( syntactic_source_info , visibility_scope, mutability, name, var,
328+ this. declare_binding ( source_info , visibility_scope, mutability, name, var,
329329 ty, has_guard) ;
330330 } ) ;
331331 visibility_scope
@@ -1114,7 +1114,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
11141114 /// `&T`. The second local is a binding for occurrences of `var`
11151115 /// in the arm body, which will have type `T`.
11161116 fn declare_binding ( & mut self ,
1117- syntactic_source_info : SourceInfo ,
1117+ source_info : SourceInfo ,
11181118 visibility_scope : SourceScope ,
11191119 mutability : Mutability ,
11201120 name : Name ,
@@ -1123,15 +1123,15 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
11231123 has_guard : ArmHasGuard )
11241124 {
11251125 debug ! ( "declare_binding(var_id={:?}, name={:?}, var_ty={:?}, visibility_scope={:?}, \
1126- syntactic_source_info ={:?})",
1127- var_id, name, var_ty, visibility_scope, syntactic_source_info ) ;
1126+ source_info ={:?})",
1127+ var_id, name, var_ty, visibility_scope, source_info ) ;
11281128
11291129 let tcx = self . hir . tcx ( ) ;
11301130 let local = LocalDecl :: < ' tcx > {
11311131 mutability,
11321132 ty : var_ty. clone ( ) ,
11331133 name : Some ( name) ,
1134- syntactic_source_info ,
1134+ source_info ,
11351135 visibility_scope,
11361136 internal : false ,
11371137 is_user_variable : true ,
@@ -1143,7 +1143,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
11431143 mutability,
11441144 ty : tcx. mk_imm_ref ( tcx. types . re_empty , var_ty) ,
11451145 name : Some ( name) ,
1146- syntactic_source_info ,
1146+ source_info ,
11471147 visibility_scope,
11481148 internal : false ,
11491149 is_user_variable : true ,
0 commit comments