@@ -306,26 +306,26 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
306
306
-> Option < SourceScope > {
307
307
assert ! ( !( visibility_scope. is_some( ) && lint_level. is_explicit( ) ) ,
308
308
"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 ;
310
310
self . visit_bindings ( pattern, & mut |this, mutability, name, var, span, ty| {
311
311
if visibility_scope. is_none ( ) {
312
312
visibility_scope = Some ( this. new_source_scope ( scope_span,
313
313
LintLevel :: Inherited ,
314
314
None ) ) ;
315
315
// If we have lints, create a new source scope
316
316
// 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.
318
318
if lint_level. is_explicit ( ) {
319
- syntactic_scope =
319
+ scope =
320
320
this. new_source_scope ( scope_span, lint_level, None ) ;
321
321
}
322
322
}
323
- let syntactic_source_info = SourceInfo {
323
+ let source_info = SourceInfo {
324
324
span,
325
- scope : syntactic_scope ,
325
+ scope,
326
326
} ;
327
327
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,
329
329
ty, has_guard) ;
330
330
} ) ;
331
331
visibility_scope
@@ -1114,7 +1114,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1114
1114
/// `&T`. The second local is a binding for occurrences of `var`
1115
1115
/// in the arm body, which will have type `T`.
1116
1116
fn declare_binding ( & mut self ,
1117
- syntactic_source_info : SourceInfo ,
1117
+ source_info : SourceInfo ,
1118
1118
visibility_scope : SourceScope ,
1119
1119
mutability : Mutability ,
1120
1120
name : Name ,
@@ -1123,15 +1123,15 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1123
1123
has_guard : ArmHasGuard )
1124
1124
{
1125
1125
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 ) ;
1128
1128
1129
1129
let tcx = self . hir . tcx ( ) ;
1130
1130
let local = LocalDecl :: < ' tcx > {
1131
1131
mutability,
1132
1132
ty : var_ty. clone ( ) ,
1133
1133
name : Some ( name) ,
1134
- syntactic_source_info ,
1134
+ source_info ,
1135
1135
visibility_scope,
1136
1136
internal : false ,
1137
1137
is_user_variable : true ,
@@ -1143,7 +1143,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1143
1143
mutability,
1144
1144
ty : tcx. mk_imm_ref ( tcx. types . re_empty , var_ty) ,
1145
1145
name : Some ( name) ,
1146
- syntactic_source_info ,
1146
+ source_info ,
1147
1147
visibility_scope,
1148
1148
internal : false ,
1149
1149
is_user_variable : true ,
0 commit comments