pub fn keeps_lock(
constraints: &[(&str, &Constraint)],
locked: &Version,
policy: SelectionPolicy,
excluded: &HashSet<Version>,
) -> boolExpand description
Whether the lock is kept: policy prefers it (a Constraint::Latest asks for the newest, so
beside one PreferLockThenLatest prefers nothing) and the locked version is allowed. It does
not ask whether the tag is still in the repository, so the answer needs no tag list and a tag
deleted upstream keeps the lock. --frozen is the binary’s own rule and asks allows.