@@ -196,8 +196,8 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
196
196
}
197
197
198
198
impl < ' a , ' tcx > Visitor < ' tcx > for TypeChecker < ' a , ' tcx > {
199
- fn visit_local ( & mut self , local : & Local , context : PlaceContext , location : Location ) {
200
- if self . body . local_decls . get ( * local) . is_none ( ) {
199
+ fn visit_local ( & mut self , local : Local , context : PlaceContext , location : Location ) {
200
+ if self . body . local_decls . get ( local) . is_none ( ) {
201
201
self . fail (
202
202
location,
203
203
format ! ( "local {:?} has no corresponding declaration in `body.local_decls`" , local) ,
@@ -208,7 +208,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
208
208
// Uses of locals must occur while the local's storage is allocated.
209
209
self . storage_liveness . seek_after_primary_effect ( location) ;
210
210
let locals_with_storage = self . storage_liveness . get ( ) ;
211
- if !locals_with_storage. contains ( * local) {
211
+ if !locals_with_storage. contains ( local) {
212
212
self . fail ( location, format ! ( "use of local {:?}, which has no storage here" , local) ) ;
213
213
}
214
214
}
@@ -823,8 +823,8 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
823
823
self . super_terminator ( terminator, location) ;
824
824
}
825
825
826
- fn visit_source_scope ( & mut self , scope : & SourceScope ) {
827
- if self . body . source_scopes . get ( * scope) . is_none ( ) {
826
+ fn visit_source_scope ( & mut self , scope : SourceScope ) {
827
+ if self . body . source_scopes . get ( scope) . is_none ( ) {
828
828
self . tcx . sess . diagnostic ( ) . delay_span_bug (
829
829
self . body . span ,
830
830
& format ! (
0 commit comments