Skip to content

libcore can use unstable library features without a feature flag #58705

Open
@RalfJung

Description

@RalfJung

I've been assuming that feature flags can also be used "within" the standard library to control which features are already being used. That is helpful when stabilizing a part of the API, to test if that API is viable enough for whatveer the standard library does with it.

But it turns out that, e.g., core::fmt::float can call MaybeUninit::get_mut without enabling the relevant feature flag. That seems like a bug to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions