-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description ## Problem\* Resolves #4860 ## Summary\* Allow using `mod.nr` as the entrypoint to a module. - [x] Add test for conflicting `foo.nr` and `foo/mod.nr` - [x] Add handling for `foo/lib/foo.nr` and other disallowed name-based cases - [x] Add tests for `foo/lib/foo.nr`, `main/foo.nr`, and `foo/mod/bar` ## Additional Context I expected `find_module` to have the logic for this, but after a bunch of debugging, it seems somehow unrelated. I.e. it's not even called for the `mod.nr` case. ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings. --------- Co-authored-by: TomAFrench <[email protected]> Co-authored-by: Tom French <[email protected]> Co-authored-by: Ary Borenszweig <[email protected]>
- Loading branch information
1 parent
0c4fffa
commit 076fe0a
Showing
23 changed files
with
370 additions
and
113 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.