Skip to main content

diff_refs_with_contexts_partial

Function diff_refs_with_contexts_partial 

Source
pub fn diff_refs_with_contexts_partial(
    old: &[&Package],
    new: &[&Package],
    old_context: &[&Package],
    new_context: &[&Package],
    encodings: &[&str],
) -> (DiffReport, Vec<ContextIssue>)
Expand description

Compares complete scopes while retaining independent missing-evidence issues. Each issue names its consumer path and the remote declaration; callers decide what an issue means for the units that own or reach it (ADR-0031 decision 13). Remote FlatBuffers and proto3 widths are reported once per consumer path and remote declaration reached by a surviving old consumer use, at the consumer path, with <remote declaration>: <integer> values. Only the per-side context entry points report remote widths. They also report remote strict enum and enum-set appends under the same consumer-use gates, always breaking, with <remote declaration>: <names> values (ADR-0031 decision 13). They also report scalar constraint changes at surviving consumer interaction paths, with the direction rule of constraint_changed. A side without remote context draws no remote width, constraint or strict-append lines. A remote scalar’s changed backing or resolved width also reports a breaking width_changed at each surviving consumer interaction path, even on send-only uses, once per path and remote declaration.