-
Notifications
You must be signed in to change notification settings - Fork 13.3k
unintended provocation of thread_local_internals feature #24334
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
Comments
This change was introduced just recently: f651bea. I reproduced the problem without using anything thread-related: mycrate.rs: #![feature(staged_api)]
#![crate_type = "lib"]
#![staged_api]
#![stable(feature = "mycrate", since = "1.0.0")]
#[unstable(feature = "mycrate_internals")]
mod bar {}
#[stable(feature = "mycrate", since = "1.0.0")]
pub fn bar() {} main.rs: extern crate mycrate;
use mycrate::bar;
fn main() {} Commands:
Output:
|
Make sure the unstable `scoped` modules isn't named the same as the `scoped` function. cc rust-lang#24334
Make sure the unstable `scoped` modules isn't named the same as the `scoped` function. cc #24334
With #24362 merged, is this fixed? |
The exact issue at hand has been resolved, but the underlying issue remains. Specifically a module and free-function of the same name but different stability level will cause problems. |
Also hit by this; still affecting the nightly for osx right now, but hopefully the next build will include the fix. |
Stability is an internal detail. This is unlikely to impact out-of-tree code. |
I have no idea what's causing this, but on the current nightly, this fails:
with "use of unstable library feature 'thread_local_internals'." Enabling the feature works, but this should be a stable function. Interestingly, tweaking the
use
works:I wonder if it's because there is a (private) sub-module called
scoped
which has a module-wideunstable
marker.Version info:
The text was updated successfully, but these errors were encountered: