Skip to content

Commit 326454a

Browse files
authored
Remove comment about use
1 parent 70d05b7 commit 326454a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/sys/thread_local/statik.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ pub macro thread_local_inner {
1414
(@key $t:ty, const $init:expr) => {{
1515
const __INIT: $t = $init;
1616

17-
// NOTE: this cannot import `LocalKey` or `Storage` with a `use` because that can shadow
18-
// user provided type or type alias with a matching name. Please update the shadowing test
19-
// in `tests/thread.rs` if these types are renamed.
17+
// NOTE: Please update the shadowing test in `tests/thread.rs` if these types are renamed.
2018
unsafe {
2119
$crate::thread::LocalKey::new(|_| {
2220
static VAL: $crate::thread::local_impl::EagerStorage<$t> = $crate::thread::local_impl::EagerStorage { value: __INIT };

0 commit comments

Comments
 (0)