pub fn with_metavar_spans<R>(
    f: impl FnOnce(&mut FxHashMap<Span, Span>) -> R
) -> R