-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Order of extern crate/pub mod matters suddenly #34212
Comments
This was probably caused by #34032 (which is also tagged as a cc @jseyfried |
@TimNN Yeah, this was caused by #34032 -- thanks for the cc! @shahn #34032 changed the behavior of pub mod module1; // it would not be available in this module on stable
#[macro_use] mod foo; // unless this were moved above `module1` This change could be viewed as a regression or a bug-fix, depending on your point of view. Regardless, I thought the change would be unlikely to cause breakage in practice. I reverted the change (fixing the breakage) in #34239. cc @nrc |
@jseyfried, I'm fine with this being a breaking change if it is deemed worth it! No problem at all. Maybe this should be discussed before #34239 gets applied? |
I have code that uses this (works on beta and stable):
On nightly, this fails with an error about lazy_static not being found inside module1. When I switch around the order stuff starts working again. Seems like a regression?
The text was updated successfully, but these errors were encountered: