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

Disallow symbol imports from another module #655

Conversation

bartlomieju
Copy link
Contributor

This commit fixes a compiler bug that allowed to import symbols that were not defined in the module, but only imported from another module.

Changelog: fixed

Closes #603

This commit fixes a compiler bug that allowed to import symbols that
were not defined in the module, but only imported from another module.

Changelog: fixed
types/src/lib.rs Outdated Show resolved Hide resolved
types/src/lib.rs Show resolved Hide resolved
Please squash me into the initial commit once done :)

Add tests for all cases of `ModuleId::import_symbol`
@bartlomieju bartlomieju force-pushed the disallow_importing_symbols_from_another_mod branch from e561b04 to f37d924 Compare November 18, 2023 22:53
Copy link
Collaborator

@yorickpeterse yorickpeterse left a comment

Choose a reason for hiding this comment

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

The changes look good to me. I'll do some extra manual testing later today to double check everything.

types/src/lib.rs Show resolved Hide resolved
@yorickpeterse
Copy link
Collaborator

This has been rebased into b3783be. Thanks! 🎉

@bartlomieju bartlomieju deleted the disallow_importing_symbols_from_another_mod branch November 21, 2023 13:56
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.

Disallow importing of symbols imported from another module
2 participants