same_lineage: name PipelineDocument locally (528a7f7 does not build)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 18:40:19 +02:00
commit adda2bf9ae

View file

@ -818,7 +818,8 @@ fn resolution_rule(docs: &Docs, resolution: &PipelineResolution) -> Result<(), M
/// The one supersession lineage rule (ruling `supersession-lineage`). A target is
/// superseded only by a target of its campaign, a cut_spec only by a cut_spec of its
/// campaign and cut, and a ruling by any ruling: operator directions cut across campaigns.
fn same_lineage(subject: &D, supersessor: &D) -> bool {
fn same_lineage(subject: &PipelineDocument, supersessor: &PipelineDocument) -> bool {
use PipelineDocument as D;
match (subject, supersessor) {
(D::Target(old), D::Target(new)) => old.campaign == new.campaign,
(D::CutSpec(old), D::CutSpec(new)) => old.campaign == new.campaign && old.cut == new.cut,