@@ -148,7 +148,7 @@ impl HirFileId {
148148 match self . 0 {
149149 HirFileIdRepr :: FileId ( file_id) => file_id,
150150 HirFileIdRepr :: MacroFile ( macro_file) => {
151- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
151+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
152152 let file_id = match & loc. eager {
153153 Some ( EagerCallInfo { included_file : Some ( file) , .. } ) => ( * file) . into ( ) ,
154154 _ => loc. kind . file_id ( ) ,
@@ -162,7 +162,7 @@ impl HirFileId {
162162 let mut level = 0 ;
163163 let mut curr = self ;
164164 while let HirFileIdRepr :: MacroFile ( macro_file) = curr. 0 {
165- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
165+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
166166
167167 level += 1 ;
168168 curr = loc. kind . file_id ( ) ;
@@ -175,7 +175,7 @@ impl HirFileId {
175175 match self . 0 {
176176 HirFileIdRepr :: FileId ( _) => None ,
177177 HirFileIdRepr :: MacroFile ( macro_file) => {
178- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
178+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
179179 Some ( loc. kind . to_node ( db) )
180180 }
181181 }
@@ -186,7 +186,7 @@ impl HirFileId {
186186 match self . 0 {
187187 HirFileIdRepr :: FileId ( _) => None ,
188188 HirFileIdRepr :: MacroFile ( macro_file) => {
189- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
189+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
190190
191191 let arg_tt = loc. kind . arg ( db) ?;
192192
@@ -231,7 +231,7 @@ impl HirFileId {
231231 match self . 0 {
232232 HirFileIdRepr :: FileId ( _) => None ,
233233 HirFileIdRepr :: MacroFile ( macro_file) => {
234- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
234+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
235235 let item = match loc. def . kind {
236236 MacroDefKind :: BuiltInDerive ( ..) => loc. kind . to_node ( db) ,
237237 _ => return None ,
@@ -245,7 +245,7 @@ impl HirFileId {
245245 match self . 0 {
246246 HirFileIdRepr :: FileId ( _) => false ,
247247 HirFileIdRepr :: MacroFile ( macro_file) => {
248- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
248+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
249249 match loc. def . kind {
250250 MacroDefKind :: ProcMacro ( _, ProcMacroKind :: CustomDerive , _) => true ,
251251 _ => false ,
@@ -258,7 +258,7 @@ impl HirFileId {
258258 pub fn is_include_macro ( & self , db : & dyn db:: AstDatabase ) -> bool {
259259 match self . 0 {
260260 HirFileIdRepr :: MacroFile ( macro_file) => {
261- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
261+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
262262 matches ! ( loc. eager, Some ( EagerCallInfo { included_file: Some ( _) , .. } ) )
263263 }
264264 _ => false ,
@@ -269,7 +269,7 @@ impl HirFileId {
269269 pub fn is_attr_macro ( & self , db : & dyn db:: AstDatabase ) -> bool {
270270 match self . 0 {
271271 HirFileIdRepr :: MacroFile ( macro_file) => {
272- let loc: MacroCallLoc = db. lookup_intern_macro ( macro_file. macro_call_id ) ;
272+ let loc: MacroCallLoc = db. lookup_intern_macro_call ( macro_file. macro_call_id ) ;
273273 matches ! ( loc. kind, MacroCallKind :: Attr { .. } )
274274 }
275275 _ => false ,
@@ -288,7 +288,7 @@ impl MacroDefId {
288288 krate : CrateId ,
289289 kind : MacroCallKind ,
290290 ) -> MacroCallId {
291- db. intern_macro ( MacroCallLoc { def : self , krate, eager : None , kind } )
291+ db. intern_macro_call ( MacroCallLoc { def : self , krate, eager : None , kind } )
292292 }
293293
294294 pub fn ast_id ( & self ) -> Either < AstId < ast:: Macro > , AstId < ast:: Fn > > {
@@ -402,7 +402,7 @@ impl ExpansionInfo {
402402 HirFileIdRepr :: FileId ( _) => return None ,
403403 HirFileIdRepr :: MacroFile ( macro_file) => macro_file. macro_call_id ,
404404 } ;
405- let loc = db. lookup_intern_macro ( call_id) ;
405+ let loc = db. lookup_intern_macro_call ( call_id) ;
406406
407407 let token_range = token. value . text_range ( ) ;
408408 match & loc. kind {
@@ -458,7 +458,7 @@ impl ExpansionInfo {
458458 HirFileIdRepr :: FileId ( _) => return None ,
459459 HirFileIdRepr :: MacroFile ( macro_file) => macro_file. macro_call_id ,
460460 } ;
461- let loc = db. lookup_intern_macro ( call_id) ;
461+ let loc = db. lookup_intern_macro_call ( call_id) ;
462462
463463 let ( token_map, tt) = match & loc. kind {
464464 MacroCallKind :: Attr { attr_args, .. } => match self . macro_arg_shift . unshift ( token_id) {
0 commit comments