Skip to content

Commit b766399

Browse files
committed
Update RFC 3184.
1 parent 7237fc5 commit b766399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/0000-thread-local-cell-methods.md renamed to text/3184-thread-local-cell-methods.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- Feature Name: thread_local_cell_methods
22
- Start Date: 2021-10-17
33
- RFC PR: [rust-lang/rfcs#3184](https://github.com/rust-lang/rfcs/pull/3184)
4-
- Rust Issue: [rust-lang/rust#0000](https://github.com/rust-lang/rust/issues/0000)
4+
- Rust Issue: [rust-lang/rust#92122](https://github.com/rust-lang/rust/issues/92122)
55

66
# Summary
77
[summary]: #summary
@@ -393,6 +393,7 @@ Alternatives for avoiding the initializer:
393393
# Unresolved questions
394394
[unresolved-questions]: #unresolved-questions
395395

396+
- Should we use the names `with_borrow` and `with_borrow_mut` instead of `with_ref` and `with_mut`, to match `RefCell`'s method names?
396397
- Do we also want anything for `UnsafeCell`? Maybe `LocalKey<UnsafeCell<T>>::get()` to get the `*mut T`, just like `UnsafeCell<T>::get()`.
397398
- Are there any other types commonly used as thread locals for which we should do something similar?
398399
- 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)