Skip to content

Commit 7237fc5

Browse files
Update text/0000-thread-local-cell-methods.md
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent 5bde562 commit 7237fc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

text/0000-thread-local-cell-methods.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,4 @@ Alternatives for avoiding the initializer:
395395

396396
- Do we also want anything for `UnsafeCell`? Maybe `LocalKey<UnsafeCell<T>>::get()` to get the `*mut T`, just like `UnsafeCell<T>::get()`.
397397
- Are there any other types commonly used as thread locals for which we should do something similar?
398+
- Should `.set` skip the initializer, or not? We should consider this question again at stabilization time, and we should listen for anyone reporting concerns here (especially if it caused semantically unexpected behavior).

0 commit comments

Comments
 (0)