Skip to content

test/phase/dump_drop_plan_tuple_fields_moved expects _2=Maybe; since #1394 the dump says _2=Init #1529

Closed

Description

@ehartford

Seen while checking #1414's drop-state lattice change against the dump fixtures. Stage2 of main f1e3bd2:

$ with-stage2 check test/phase/dump_drop_plan_tuple_fields_moved.w --dump-drop-plan
fn sym770(run)
  ...
  bb0.stmt25 storage-dead local=_2 remaining=_2=Init, _2.0=Init, _2.1=Init

The fixture expects remaining=_2=Maybe, _2.0=Init, _2.1=Init. Since #1394 (#1425) a move out of a sub-place no longer joins Moved into the base (MirDropStateMap.mark_place: "A move out of a sub-place vacates only that sub-place"), so after move pair.0, move pair.1 and both reset-on-move blanks, _2 is Init on the one path, which is what the dump now prints. The #1414 stack (#1528) prints the same line.

Expected: the fixture pins the state the ruling produces — _2=Init (the aggregate still gets no drop row, expect-check-stdout-not: place=_2 holds) — or, if Maybe was the intended verdict, the reason is written down and the dataflow restores it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions