pub(crate) fn check_attr_crate_type( sess: &Session, attrs: &[Attribute], lint_buffer: &mut LintBuffer, )