File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ use std::sync::Arc;
43
43
44
44
/// A trait to be implemented on [super::WakerArray] and [super::WakerVec] for polymorphism.
45
45
/// These are the type that goes in the Arc. They both contain the Readiness and the redirect array/vec.
46
+ /// # Safety
47
+ /// The `get_redirect_slice` method MUST always return the same slice for the same self.
46
48
pub ( super ) unsafe trait SharedArcContent {
47
- /// Get the reference of the redirect slice. This is used to compute the index.
48
- /// This method MUST always return the same slice for the same self.
49
- /// Failure to do so may lead to unsafety.
49
+ /// Get the reference of the redirect slice.
50
50
fn get_redirect_slice ( & self ) -> & [ * const Self ] ;
51
51
52
52
/// Called when the subfuture at the specified index should be polled.
You can’t perform that action at this time.
0 commit comments