Skip to content

unintended provocation of thread_local_internals feature #24334

Closed
@BurntSushi

Description

@BurntSushi

I have no idea what's causing this, but on the current nightly, this fails:

use std::thread::scoped;
fn main() { let _ = scoped(move || ()); }

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:

use std::thread;
fn main() { let _ = thread::scoped(move || ()); }

I wonder if it's because there is a (private) sub-module called scoped which has a module-wide unstable marker.

Version info:

[andrew@Liger scoped] rustc --version
rustc 1.0.0-nightly (93f7fe32d 2015-04-10) (built 2015-04-11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-stabilityArea: `#[stable]`, `#[unstable]` etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions