pub fn is_place_thread_local(&self, place: &Place<'tcx>) -> bool {
        if let Place::Static(statik) = place {
            let attrs = self.tcx.get_attrs(statik.def_id);
            let is_thread_local = attrs.iter().any(|attr| attr.check_name("thread_local"));

            debug!(
                "is_place_thread_local: attrs={:?} is_thread_local={:?}",
                attrs, is_thread_local
            );
            is_thread_local
        } else {
            debug!("is_place_thread_local: no");
            false
        }
    }
/// Check if a place is a thread-local static.
Check if a place is a thread-local static.
Check if a place is a thread - local static .
pub fn is_place_thread_local(&self, place: &Place<'tcx>) -> bool {
        if let Place::Static(statik) = place {
            let attrs = self.tcx.get_attrs(statik.def_id);
            let is_thread_local = attrs.iter().any(|attr| attr.check_name("thread_local"));
            debug!(
                "is_place_thread_local: attrs={:?} is_thread_local={:?}",
                attrs, is_thread_local
            );
            is_thread_local
        } else {
            debug!("is_place_thread_local: no");
            false
        }
    }
pub fn is_place_thread_local ( & self , place : & Place < ' tcx > ) -> bool { if let Place :: Static ( statik ) = place { let attrs = self . tcx . get_attrs ( statik . def_id ) ; let is_thread_local = attrs . iter ( ) . any ( | attr | attr . check_name ( " " ) ) ; debug ! ( " " attrs is_thread_local ) ; is_thread_local } else { debug ! ( " " ) ; false } }
Check if a place is a thread-local static.
Check if a place is a thread - local static .
&self
place
&Place<'tcx>
&self
place
&Place<'tcx>