Skip to content

Refactor liveness to work on the CFG and use dataflow #14971

Closed
@nikomatsakis

Description

@nikomatsakis

Now that @pnkfelix has landed CFG and is about to land dataflow, it's time for liveness code to be rewritten to use it.

Currently liveness has two responsibilities:

  • issuing warnings for dead writes
  • checking that functions always return a value or fail

Probably liveness as a pass should go away and be moved into borrowck.

cc @zwarich

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions