Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upOrder of extern crate/pub mod matters suddenly #34212
Comments
This comment has been minimized.
This comment has been minimized.
|
This was probably caused by #34032 (which is also tagged as a cc @jseyfried |
jseyfried
referenced this issue
Jun 12, 2016
Merged
Revert a change in the scope of macros imported from crates to fix a regression #34239
This comment has been minimized.
This comment has been minimized.
|
@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 |
This comment has been minimized.
This comment has been minimized.
|
@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? |
shahn commentedJun 11, 2016
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?