pub fn check_unconsumed_unit_calls(
items: &[CommonsItem],
prefixes: &BTreeMap<String, String>,
file: &FileConsumes<'_>,
) -> Vec<CompileError>Expand description
#3536: bynk.consumes.unit_not_consumed, the same rule for a cross-context
call (pay.charge(…)): the file that writes it must itself consumes the
unit, in any form. prefixes maps each prefix a call may write (the unit’s
name, or the alias of a consumes U as A) to the unit. The fix adds
consumes U to this file.