From 95fb11d51fdd3523f96dca81835681274086e656 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 13 Aug 2019 09:29:01 +0200 Subject: [PATCH] make TLS state private to TLS module --- src/shims/tls.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shims/tls.rs b/src/shims/tls.rs index d2190bd969e3..e90ace948b7a 100644 --- a/src/shims/tls.rs +++ b/src/shims/tls.rs @@ -18,17 +18,17 @@ pub struct TlsEntry<'tcx> { /// The data for this key. None is used to represent NULL. /// (We normalize this early to avoid having to do a NULL-ptr-test each time we access the data.) /// Will eventually become a map from thread IDs to `Scalar`s, if we ever support more than one thread. - pub(crate) data: Option>, - pub(crate) dtor: Option>, + data: Option>, + dtor: Option>, } #[derive(Debug)] pub struct TlsData<'tcx> { /// The Key to use for the next thread-local allocation. - pub(crate) next_key: TlsKey, + next_key: TlsKey, /// pthreads-style thread-local storage. - pub(crate) keys: BTreeMap>, + keys: BTreeMap>, } impl<'tcx> Default for TlsData<'tcx> {