-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Stability attributes ignored on use declarations #23937
Copy link
Copy link
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)A-stabilityArea: `#[stable]`, `#[unstable]` etc.Area: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.Category: This is a bug.P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)A-stabilityArea: `#[stable]`, `#[unstable]` etc.Area: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.Category: This is a bug.P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
std::collectionsreexportscollections::linked_list, which has this alias:collections::linked_listandcollections::linked_list::LinkedListare stable, so presumably the intent of these stability attributes was to stop stable code from using theDListname, but it doesn't work. This compiles fine:AFAICT, stability attributes don't affect
pub usedeclarations.(Aside: AFAICT, stability attributes also don't affect
impls either, but maybe I'm missing something? The standard library has stability attributes on many of itsimpls.)