diff --git a/components/style/scoped_tls.rs b/components/style/scoped_tls.rs index b4eed7509c9..e1e5209a058 100644 --- a/components/style/scoped_tls.rs +++ b/components/style/scoped_tls.rs @@ -15,6 +15,9 @@ use std::ops::DerefMut; /// /// We use this on Servo to construct thread-local contexts, but clear them once /// we're done with restyling. +/// +/// Note that the cleanup is done on the thread that owns the scoped TLS, thus +/// the Send bound. pub struct ScopedTLS<'scope, T: Send> { pool: &'scope rayon::ThreadPool, slots: Box<[RefCell>]>,