Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement module_path macro #17936

Merged
merged 2 commits into from
Aug 23, 2024
Merged

feat: Implement module_path macro #17936

merged 2 commits into from
Aug 23, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Aug 21, 2024

Turns out this is a pain to implement because of our hir-def hir-expand split :)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 21, 2024
Comment on lines +145 to +147
// This isn't really eager, we have no inputs, but we abuse the fact how eager macros are
// handled in r-a to be able to thread the module path through.
(module_path, ModulePath) => module_path_expand
Copy link
Member Author

Choose a reason for hiding this comment

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

The magic that makes things work despite our crate split (I hate this hack)

@Veykril Veykril changed the title internal: Incorrectly implement module_path macro internal: Implement module_path macro Aug 21, 2024
@Veykril Veykril marked this pull request as ready for review August 21, 2024 11:50
@Veykril Veykril changed the title internal: Implement module_path macro feat: Implement module_path macro Aug 21, 2024
@Veykril
Copy link
Member Author

Veykril commented Aug 23, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Aug 23, 2024

📌 Commit afcf3f2 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 23, 2024

⌛ Testing commit afcf3f2 with merge 33c1f57...

@bors
Copy link
Contributor

bors commented Aug 23, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 33c1f57 to master...

@bors bors merged commit 33c1f57 into rust-lang:master Aug 23, 2024
11 checks passed
@Veykril Veykril deleted the module_path branch August 23, 2024 09:47
bors added a commit that referenced this pull request Aug 27, 2024
Revert "feat: Implement `module_path` macro"

Reverts #17936 Fixes #17968
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 29, 2024
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.

3 participants