-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
#[link="dl"] should be an FCW, not a hard error. Affects 450+ crates. #147254
Copy link
Copy link
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.Category: This is a bug.P-criticalCritical priorityCritical 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.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-bugCategory: This is a bug.Category: This is a bug.P-criticalCritical priorityCritical 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.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried this code:
I expected the code to compile, since I allowed the FCW. Instead, it caused the following hard error:
This affects old versions of the
winitcrate. According to the crater run (in which this issue was discovered), this affects at least 450 crates that depend onwinit.This presumably regressed in #143193. CC @JonathanBrouwer
As per T-lang decision, this code should have caused a "deny-by-default FCW (that reports in dependencies)", not a hard error that can't be silenced.
The issue for the FCW is seemingly #57571.
I have not yet tested the behavior of this in dependencies.
Version it worked on
Stable rust 1.90.0 on the playground.
Version with regression
1.91.0-beta.4 (2025-09-27 aa7859c0dec2de6c9cab)on the playground