File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -973,10 +973,10 @@ impl ExprCollector<'_> {
973
973
block : ast:: BlockExpr ,
974
974
mk_block : impl FnOnce ( Option < BlockId > , Box < [ Statement ] > , Option < ExprId > ) -> Expr ,
975
975
) -> ExprId {
976
- let file_local_id = self . ast_id_map . ast_id ( & block) ;
977
- let ast_id = AstId :: new ( self . expander . current_file_id , file_local_id ) ;
978
-
979
- let block_id = if ItemTree :: block_has_items ( self . db , ast_id . file_id , & block ) {
976
+ let block_id = if ItemTree :: block_has_items ( self . db , self . expander . current_file_id , & block)
977
+ {
978
+ let file_local_id = self . ast_id_map . ast_id ( & block ) ;
979
+ let ast_id = AstId :: new ( self . expander . current_file_id , file_local_id ) ;
980
980
Some ( self . db . intern_block ( BlockLoc {
981
981
ast_id,
982
982
module : self . expander . def_map . module_id ( self . expander . module ) ,
You can’t perform that action at this time.
0 commit comments