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

fix: extract mod to file should respect path attribute #17216

Merged
merged 2 commits into from
May 14, 2024

Conversation

Young-Flash
Copy link
Member

close #17181

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 12, 2024
Comment on lines +136 to +137
mod expr;
//- /parser/expr.rs
Copy link
Member

Choose a reason for hiding this comment

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

This won't be correct, the module would need to be at /parser/__mod/expr.rs for this to be loaded no?

Copy link
Member Author

Choose a reason for hiding this comment

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

parser/expr.rs can be loaded.

mod_with_path

IMO, with #path specified, parser/__mod.rs for mod parser(in the following code), can be seen as parser/mod.rs

#[path="parser/__mod.rs"]
mod parser;

Copy link
Member

Choose a reason for hiding this comment

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

Right, thanks for double checking.

@Veykril Veykril added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 13, 2024
@Veykril
Copy link
Member

Veykril commented May 14, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented May 14, 2024

📌 Commit 3e57aab has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 14, 2024

⌛ Testing commit 3e57aab with merge 07d71c0...

@bors
Copy link
Collaborator

bors commented May 14, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 07d71c0 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
4 participants