pub(crate) fn check_static<'tcx>( cx: &LateContext<'tcx>, symbol_name: &str, did: LocalDefId, sp: Span, )