mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 20:09:01 +00:00 
			
		
		
		
	Merge pull request #18853 from ChayimFriedman2/no-completion
Fix case where completion inside macro that expands to `#[test]` was unavailable
This commit is contained in:
		
						commit
						cd12ef8547
					
				
					 3 changed files with 105 additions and 5 deletions
				
			
		|  | @ -1316,6 +1316,7 @@ impl DefCollector<'_> { | |||
|                     // being cfg'ed out).
 | ||||
|                     // Ideally we will just expand them to nothing here. But we are only collecting macro calls,
 | ||||
|                     // not expanding them, so we have no way to do that.
 | ||||
|                     // If you add an ignored attribute here, also add it to `Semantics::might_be_inside_macro_call()`.
 | ||||
|                     if matches!( | ||||
|                         def.kind, | ||||
|                         MacroDefKind::BuiltInAttr(_, expander) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Laurențiu Nicola
						Laurențiu Nicola