fn make_local_map<V>( local_decls: &mut IndexVec<Local, V>, used_locals: &UsedLocals, ) -> IndexVec<Local, Option<Local>>
Construct the mapping while swapping out unused stuff out from the vec.
vec