-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let push_dir raise if given an anonymous root namespace
Anonymous root namespaces are not supported, Zeitwerk assumes classes and modules have regular names in a few places. However, if you pass an anonymous root namespace right now the library crashes in some random internal spot. It is better to tell the user at the boundary and in a controlled way. Also, this allows us to work internally knowing that root namespaces in `roots` have a name for sure.
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
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