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

Allow mod bar; in foo.rs refer to foo/bar/mod.rs #23

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

rodrigorc
Copy link
Contributor

Hello!

I have a project with a few submodules with a slightly inconsistent but correct layout, such as:

parent
├── mod.rs  (use foo;)
├── foo.rs  (use bar;)
└── foo
    └── bar
        └── mod.rs

Running xtr fails with:

No file with module definition for mod bar in file "parent/foo.rs"

This PR covers this case.

@ogoffart ogoffart merged commit c158de6 into woboq:master Jul 31, 2024
3 checks passed
@ogoffart
Copy link
Member

Looks good, thank you.

@rodrigorc rodrigorc deleted the SubModuleInDirMod branch July 31, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants