Skip to content

Conversation

@wasd96040501
Copy link
Contributor

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 1, 2023
@lnicola
Copy link
Member

lnicola commented Nov 1, 2023

Thanks a lot, I was actually planning to look into this!

@lnicola
Copy link
Member

lnicola commented Nov 2, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Nov 2, 2023

📌 Commit b76f2c8 has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 2, 2023

⌛ Testing commit b76f2c8 with merge 11a263d...

@bors
Copy link
Contributor

bors commented Nov 2, 2023

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 11a263d to master...

@bors bors merged commit 11a263d into rust-lang:master Nov 2, 2023
Comment on lines +622 to +633
let skip_check_tt_count = match loc.kind {
MacroCallKind::FnLike { ast_id, expand_to: _ } => {
if let Some(name_ref) =
ast_id.to_node(db).path().and_then(|p| p.segment()).and_then(|s| s.name_ref())
{
name_ref.as_name() == name!(include)
} else {
false
}
}
_ => false,
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should check that the loc.def is the builtin include macro instead of doing a name check. Otherwise any macro called include skips the token limit check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include based generated sources from time-tz fails autocomplete

5 participants