File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,9 @@ mod private {
250
250
impl MutabilityIsMutable for Mutable { }
251
251
impl < IS : ?Sized > MutabilityIsMutable for MutableWithImmutableSuperclass < IS > { }
252
252
253
+ pub trait MutabilityIsMainThreadOnly : Mutability { }
254
+ impl MutabilityIsMainThreadOnly for MainThreadOnly { }
255
+
253
256
// TODO: Trait for objects whose `hash` is guaranteed to never change,
254
257
// which allows it to be used as a key in `NSDictionary`.
255
258
}
@@ -341,7 +344,10 @@ impl<T: ?Sized + ClassType> IsMutable for T where T::Mutability: private::Mutabi
341
344
//
342
345
// Note: MainThreadMarker::from relies on this.
343
346
pub trait IsMainThreadOnly : ClassType { }
344
- impl < T : ?Sized + ClassType < Mutability = MainThreadOnly > > IsMainThreadOnly for T { }
347
+ impl < T : ?Sized + ClassType > IsMainThreadOnly for T where
348
+ T :: Mutability : private:: MutabilityIsMainThreadOnly
349
+ {
350
+ }
345
351
346
352
#[ cfg( test) ]
347
353
mod tests {
You can’t perform that action at this time.
0 commit comments