| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-09-29 | Fix std tests for wasm32-wasip2 target | Nicola Krumschmidt | -1/+1 | |
| 2024-06-18 | Replace `move||` with `move ||` in `compiler/` and `library/` | Vonr | -1/+1 | |
| Edit from #126631 to revert changes on ui tests | ||||
| 2024-05-25 | std: make TLS accessors closures that return pointers | joboet | -8/+4 | |
| 2024-04-08 | Change method calls to using the method directly | Trevor Gross | -3/+3 | |
| This is in accordance with Clippy's redundant_closure_for_method_calls. | ||||
| 2024-04-08 | Add `SAFETY` comments to the thread local implementation | Trevor Gross | -10/+12 | |
| Reduce `unsafe` block scope and add `SAFETY` comments. | ||||
| 2024-04-08 | Update thread local docs with idiomatic cell type use | Trevor Gross | -15/+17 | |
| The `thread_local!` examples use `RefCell` for `Copy` types. Update examples to have one `Copy` and one non-`Copy` type using `Cell` and `RefCell`, respectively. | ||||
| 2024-02-23 | Get rid of some `#[allow(static_mut_refs)]` | Pavel Grigorenko | -2/+0 | |
| 2024-02-22 | Add `rustc_confusables` annotations to some stdlib APIs | Esteban Küber | -0/+2 | |
| Help with common API confusion, like asking for `push` when the data structure really has `append`. ``` error[E0599]: no method named `size` found for struct `Vec<{integer}>` in the current scope --> $DIR/rustc_confusables_std_cases.rs:17:7 | LL | x.size(); | ^^^^ | help: you might have meant to use `len` | LL | x.len(); | ~~~ help: there is a method with a similar name | LL | x.resize(); | ~~~~~~ ``` #59450 | ||||
| 2024-02-18 | Improve wording of static_mut_ref | Obei Sideg | -2/+2 | |
| Rename `static_mut_ref` lint to `static_mut_refs`. | ||||
| 2024-02-08 | Step all bootstrap cfgs forward | Mark Rousskov | -1/+1 | |
| This also takes care of other bootstrap-related changes. | ||||
| 2024-01-20 | Revert example change from PR 116392 | David Tolnay | -4/+1 | |
| 2024-01-20 | Allow any expression blocks in `thread_local!` | Nikolai Vazquez | -3/+6 | |
| 2024-01-07 | Update test for `E0796` and `static_mut_ref` lint | Obei Sideg | -0/+2 | |
| 2024-01-02 | Update `thread_local` examples to use `local_key_cell_methods` | Trevor Gross | -18/+32 | |
| `local_key_cell_methods` has been stable for a while and provides a much less clunky way to interface with thread-local variables. Additionaly add context to the documentation about why types with interior mutability are needed. | ||||
| 2023-09-26 | std: broaden the allowed behaviour for recursive TLS initialization | joboet | -3/+3 | |
| 2023-08-22 | Replace version placeholders with 1.73.0 | Mark Rousskov | -9/+9 | |
| 2023-08-10 | Stabilize thread local cell methods. | Mara Bos | -18/+9 | |
| 2023-05-15 | Rollup merge of #110049 - SkiFire13:localkey-with-docs-fix, r=workingjubilee | Matthias Krüger | -2/+2 | |
| Don't claim `LocalKey::with` prevents a reference to be sent across threads The documentation for `LocalKey` claims that `with` yields a reference that cannot be sent across threads, but this is false since you can easily do that with scoped threads. What it actually prevents is the reference from outliving the current thread. | ||||
| 2023-04-27 | Document `const {}` syntax for `std::thread_local`. | Nilstrieb | -2/+20 | |
| It exists and is pretty cool. More people should use it. | ||||
| 2023-04-26 | Restructure and rename thread local things in std. | Mara Bos | -4/+4 | |
| 2023-04-07 | Don't claim LocalKey::with prevents a reference to be sent across threads | Giacomo Stevanato | -2/+2 | |
| 2023-03-10 | Moved thread_local implementation to sys::common | Ayush Singh | -373/+0 | |
| This allows removing all the platform-dependent code from `library/std/src/thread/local.rs` and `library/std/src/thread/mod.rs` Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com> | ||||
| 2023-03-10 | Move __thread_local_inner to sys | Ayush Singh | -194/+0 | |
| Move __thread_local_inner macro in crate::thread::local to crate::sys. Currently, the tidy check does not fail for `library/std/src/thread/local.rs` even though it contains platform specific code. This is beacause target_family did not exist at the time the tidy checks were written [1]. [1]: https://github.com/rust-lang/rust/pull/105861#discussion_r1125841678 Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com> | ||||
| 2023-01-17 | refactor[std]: do not use box syntax | joboet | -2/+1 | |
| 2022-12-30 | Auto merge of #106296 - matthiaskrgr:rollup-ukdbqwx, r=matthiaskrgr | bors | -1/+1 | |
| Rollup of 4 pull requests Successful merges: - #99244 (doc: clearer and more correct Iterator::scan) - #103707 (Replace libstd, libcore, liballoc terminology in docs) - #104182 (`IN6ADDR_ANY_INIT` and `IN6ADDR_LOOPBACK_INIT` documentation.) - #106273 (rustdoc: remove redundant CSS `.source .content { overflow: visible }`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup | ||||
| 2022-12-30 | Replace libstd, libcore, liballoc in line comments. | jonathanCogan | -1/+1 | |
| 2022-12-28 | Catch panics in destruction of TLS values | Florian Bartels | -7/+14 | |
| `destroy_value` is/can be called from C code (libc). Unwinding from Rust to C code is undefined behavior, which is why unwinding is caught here. | ||||
| 2022-11-24 | Revert "Forbid inlining `thread_local!`'s `__getit` function on Windows" | Thom Chiovoloni | -16/+9 | |
| This reverts commit 3099dfdd9fc1a331eb9c53200b310fa1a06e1573. | ||||
| 2022-11-22 | Forbid inlining `thread_local!`'s `__getit` function on Windows | Thom Chiovoloni | -9/+16 | |
| 2022-10-13 | sync thread_local key conditions exactly with what the macro uses | Ralf Jung | -2/+5 | |
| 2022-09-27 | Address feedback | mejrs | -1/+1 | |
| 2022-09-27 | Wrapper suggestions | mejrs | -0/+1 | |
| 2022-08-22 | update and extend some comments, and cfg-out some unused code | Ralf Jung | -0/+3 | |
| 2022-05-01 | Fix some links in the standard library | Vadim Petrochenkov | -0/+2 | |
| 2022-04-17 | Revert "Auto merge of #94373 - erikdesjardins:getitinl, r=Mark-Simulacrum" | Erik Desjardins | -2/+2 | |
| This reverts commit 035a717ee8bf548868fb50b5c7ca562fc4a657a7, reversing changes made to 761e8884858759b21f3374ad610494e68c087a38. | ||||
| 2022-04-12 | Add missing unsafe marker. | Mara Bos | -1/+1 | |
| This is now necessary because of deny(unsafe_op_in_unsafe_fn). | ||||
| 2022-04-12 | Add #[deny(unsafe_op_in_unsafe_fn)] to thread_local!(const). | Mara Bos | -0/+1 | |
| This avoids 'unused unsafe' warnings when using this feature inside std. | ||||
| 2022-04-07 | Use gender neutral terms | James 'zofrex' Sanderson | -1/+1 | |
| 2022-04-02 | Refer to u8 by absolute path in expansion of thread_local | David Tolnay | -3/+3 | |
| 2022-04-01 | Fix `thread_local!` macro to be compatible with `no_implicit_prelude` | niluxv | -8/+8 | |
| Fixes issue #95533 | ||||
| 2022-03-29 | Make the stdlib largely conform to strict provenance. | Aria Beingessner | -3/+3 | |
| Some things like the unwinders and system APIs are not fully conformant, this only covers a lot of low-hanging fruit. | ||||
| 2022-03-05 | Small fixes in thread local code. | Mara Bos | -2/+2 | |
| 2022-03-05 | Update documentation in thread/local.rs. | Mara Bos | -6/+26 | |
| 2022-03-05 | Add debug asserts in thread local cell set methods. | Mara Bos | -0/+4 | |
| 2022-03-05 | Add tracking issue number for local_key_cell_methods. | Mara Bos | -9/+9 | |
| 2022-03-05 | Rename LocalKey's with_{ref,mut} to with_borrow{,_mut}. | Mara Bos | -9/+9 | |
| 2022-03-05 | Implement RFC 3184 - thread local cell methods. | Mara Bos | -10/+347 | |
| 2022-02-25 | Make TLS __getit #[inline(always)] on non-Windows | Erik Desjardins | -2/+2 | |
| This may improve perf. | ||||
| 2022-01-06 | Add diagnostic items for macros | Alex Macleod | -0/+1 | |
| 2021-12-14 | Fix a bunch of typos | Frank Steffahn | -2/+2 | |
