-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
create a lint for tracking "tainted" fallback around abrupt expressions and ! type #66173
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-inferenceArea: Type inferenceArea: Type inferenceA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-never_type`#![feature(never_type)]``#![feature(never_type)]`L-dependency_on_unit_never_type_fallbackLint: dependency_on_unit_never_type_fallbackLint: dependency_on_unit_never_type_fallbackS-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.T-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-inferenceArea: Type inferenceArea: Type inferenceA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-never_type`#![feature(never_type)]``#![feature(never_type)]`L-dependency_on_unit_never_type_fallbackLint: dependency_on_unit_never_type_fallbackLint: dependency_on_unit_never_type_fallbackS-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.T-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.
As part of #65992, we want to create a lint that warns about cases where changing the fallback for type variables from
()to!will create problems. This issue is tracking that implementation work.Edit 2020-10-05: stream for work on this, https://rust-lang.zulipchat.com/#narrow/stream/259160-t-lang.2Fproject-never-type
Current status and next steps
dead_nodesthat explains what is going on, document that this function is invoked on the "way up" the tree, so that nodes are added todead_nodesset if they diverge before completing (or they never start)