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:
Laurențiu Nicola 2025-01-07 06:44:50 +00:00 committed by GitHub
commit cd12ef8547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 105 additions and 5 deletions

View file

@ -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)