pub(crate) fn collect_ref_locals( function: &MirFunction, ) -> (HashSet<MirLocalId>, HashSet<MirLocalId>)