Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stability on pub use items is mandatory but has no effect #146028

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

Description

Currently pub use items must have a stability attribute on them in the stdlib.
At the same time, this attribute does absolutely nothing and is ignored. That's weird and likely to result in bugs. It is possible someone will try to stabilize an item and try to keep its pub use unstable, not realizing this does not work.

We have two options:

  1. Make this have an effect. When an item is used through a pub use, both the item itself and the pub use must be stable for it to work. Not sure how hard this is to implement, I haven't touched that part of the codebase.
  2. Remove stability attributes on pub use items. I could easily implement this.

What is the preferred option here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-stabilityArea: `#[stable]`, `#[unstable]` etc. C-bugCategory: This is a bug. T-libsRelevant to the library 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

        AltStyle によって変換されたページ (->オリジナル) /