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 upunintended provocation of thread_local_internals feature #24334
Comments
This comment has been minimized.
This comment has been minimized.
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:
|
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 13, 2015
alexcrichton
referenced this issue
Apr 13, 2015
Merged
std: Work around a stability bug in thread #24362
bors
added a commit
that referenced
this issue
Apr 13, 2015
This comment has been minimized.
This comment has been minimized.
|
With #24362 merged, is this fixed? |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
shadowmint
commented
Apr 14, 2015
|
Also hit by this; still affecting the nightly for osx right now, but hopefully the next build will include the fix. |
steveklabnik
added
the
A-stability
label
Apr 20, 2015
This comment has been minimized.
This comment has been minimized.
|
Stability is an internal detail. This is unlikely to impact out-of-tree code. |
BurntSushi commentedApr 11, 2015
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
useworks:I wonder if it's because there is a (private) sub-module called
scopedwhich has a module-wideunstablemarker.Version info: