pub(crate) fn attribute_from_scope<'tcx, S: ExprState<'tcx>>( s: &S, scope: &Scope, ) -> (Option<HirId>, Vec<Attribute>)