@@ -402,7 +402,7 @@ impl CrateTranslator<'_> {
402
402
id : TrapId :: Star ,
403
403
location,
404
404
} ) ,
405
- ra_ap_hir_def:: hir:: Expr :: Path ( _ ) => self . trap . emit ( generated:: PathExpr {
405
+ ra_ap_hir_def:: hir:: Expr :: Path ( path ) => self . trap . emit ( generated:: PathExpr {
406
406
id : TrapId :: Star ,
407
407
location,
408
408
} ) ,
@@ -469,7 +469,7 @@ impl CrateTranslator<'_> {
469
469
tail,
470
470
} )
471
471
}
472
- ra_ap_hir_def:: hir:: Expr :: Const ( _ ) => self . trap . emit ( generated:: ConstExpr {
472
+ ra_ap_hir_def:: hir:: Expr :: Const ( const_block ) => self . trap . emit ( generated:: ConstExpr {
473
473
id : TrapId :: Star ,
474
474
location,
475
475
} ) ,
@@ -834,7 +834,7 @@ impl CrateTranslator<'_> {
834
834
labels : & mut Vec < trap:: Label > ,
835
835
) {
836
836
match id {
837
- ModuleDef :: Module ( _ ) => { }
837
+ ModuleDef :: Module ( module ) => { }
838
838
ModuleDef :: Function ( function) => {
839
839
let def: ra_ap_hir:: DefWithBody = function. into ( ) ;
840
840
let ( body, source_map) = self . db . body_with_source_map ( def. into ( ) ) ;
@@ -852,15 +852,15 @@ impl CrateTranslator<'_> {
852
852
body,
853
853
} ) ) ;
854
854
}
855
- ModuleDef :: Adt ( _ ) => { }
856
- ModuleDef :: Variant ( _ ) => { }
857
- ModuleDef :: Const ( _ ) => { }
858
- ModuleDef :: Static ( _ ) => { }
859
- ModuleDef :: Trait ( _ ) => { }
860
- ModuleDef :: TraitAlias ( _ ) => { }
861
- ModuleDef :: TypeAlias ( _ ) => { }
862
- ModuleDef :: BuiltinType ( _ ) => { }
863
- ModuleDef :: Macro ( _ ) => { }
855
+ ModuleDef :: Adt ( adt ) => { }
856
+ ModuleDef :: Variant ( variant ) => { }
857
+ ModuleDef :: Const ( const_ ) => { }
858
+ ModuleDef :: Static ( static_ ) => { }
859
+ ModuleDef :: Trait ( trait_ ) => { }
860
+ ModuleDef :: TraitAlias ( alias_ ) => { }
861
+ ModuleDef :: TypeAlias ( type_alias_ ) => { }
862
+ ModuleDef :: BuiltinType ( builtin_type_ ) => { }
863
+ ModuleDef :: Macro ( macro_ ) => { }
864
864
}
865
865
}
866
866
0 commit comments