Closed
Description
Discussion in https://discordapp.com/channels/442252698964721669/443151243398086667/669220265821077535.
The liveness linting code in rustc_passes::liveness
works on HIR using backwards dataflow. The code is quite complicated and imprecise. Moving it to rustc_mir::transform
as a new pass could simplify the compiler, improve maintainability, as well as improve precision (e.g., sub-binding level precision for tuples, structs, and arrays).
Metadata
Metadata
Assignees
Labels
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlCategory: PRs that clean code up or issues documenting cleanup.Category: An issue proposing an enhancement or a PR with one.Call for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Relevant to the compiler team, which will review and decide on the PR/issue.