Skip to content

Commit 47b227e

Browse files
committed
Auto merge of #906 - RalfJung:tls, r=RalfJung
make TLS state private to TLS module
2 parents 7654ac6 + 95fb11d commit 47b227e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/shims/tls.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ pub struct TlsEntry<'tcx> {
1818
/// The data for this key. None is used to represent NULL.
1919
/// (We normalize this early to avoid having to do a NULL-ptr-test each time we access the data.)
2020
/// Will eventually become a map from thread IDs to `Scalar`s, if we ever support more than one thread.
21-
pub(crate) data: Option<Scalar<Tag>>,
22-
pub(crate) dtor: Option<ty::Instance<'tcx>>,
21+
data: Option<Scalar<Tag>>,
22+
dtor: Option<ty::Instance<'tcx>>,
2323
}
2424

2525
#[derive(Debug)]
2626
pub struct TlsData<'tcx> {
2727
/// The Key to use for the next thread-local allocation.
28-
pub(crate) next_key: TlsKey,
28+
next_key: TlsKey,
2929

3030
/// pthreads-style thread-local storage.
31-
pub(crate) keys: BTreeMap<TlsKey, TlsEntry<'tcx>>,
31+
keys: BTreeMap<TlsKey, TlsEntry<'tcx>>,
3232
}
3333

3434
impl<'tcx> Default for TlsData<'tcx> {

0 commit comments

Comments
 (0)