fn parse_attrs<F: FnMut(u64)>(
    sess: &Session,
    attrs: &[Attribute],
    name: &'static str,
    f: F
)