Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8dc7732
Clarify why SGX code specifies linkage/symbol names for certain statics
Apr 14, 2025
abf401d
fix missing word in comment
mumbleskates Apr 17, 2025
88bd191
Point UNIX_EPOCH to associated constant in SystemTime docs
coolreader18 Apr 17, 2025
34573d6
Be more specific about the error in the SystemTime example
coolreader18 Apr 17, 2025
0d56e3e
LocalKey<T>: document that the dtor should not panic
ShE3py Apr 18, 2025
17b7d63
rtprintpanic: clarify that the error is aborting the process
ShE3py Apr 18, 2025
a86df23
tests: rework `amdgpu-require-explicit-cpu.rs`
jieyouxu Apr 19, 2025
40b7332
tests: adjust some `augmented-assignment*` tests
jieyouxu Apr 19, 2025
b47fe51
tests: adjust `tests/ui/auto-instantiate.rs`
jieyouxu Apr 19, 2025
47911eb
Don't ICE on pending obligations from deep normalization in a loop
compiler-errors Apr 18, 2025
ae4b6d6
Update docs for `AssocItems::filter_by_name_unhygienic`
GuillaumeGomez Apr 19, 2025
e0437ec
Fix error when an intra doc link is trying to resolve an empty associ…
GuillaumeGomez Apr 19, 2025
88a5e1e
Add regression test for #140026
GuillaumeGomez Apr 19, 2025
c7e976e
rustdoc-json: Improve test for auto-trait impls
aDotInTheVoid Apr 20, 2025
fd4a093
jsondocck: Require command is at start of line
aDotInTheVoid Apr 20, 2025
6ea0fe5
Update `libc` to 0.2.172 for std
Berrysoft Apr 20, 2025
de93239
remove a couple clones
matthiaskrgr Apr 19, 2025
d850e0d
Rollup merge of #139795 - jethrogb:jb/sgx-linkage-comments, r=joboet
jhpratt Apr 21, 2025
1d6e298
Rollup merge of #139946 - mumbleskates:any-fix-missing-word, r=jhpratt
jhpratt Apr 21, 2025
213f3d3
Rollup merge of #139982 - coolreader18:time-doc-tweak, r=jhpratt
jhpratt Apr 21, 2025
7431360
Rollup merge of #140009 - ShE3py:tls-abort, r=thomcc
jhpratt Apr 21, 2025
1499121
Rollup merge of #140021 - compiler-errors:no-deep-norm-ice, r=lcnr
jhpratt Apr 21, 2025
e4ca190
Rollup merge of #140036 - jieyouxu:ui-cleanup-4, r=compiler-errors
jhpratt Apr 21, 2025
8f27141
Rollup merge of #140047 - matthiaskrgr:clo, r=compiler-errors
jhpratt Apr 21, 2025
951d3ef
Rollup merge of #140052 - GuillaumeGomez:fix-140026, r=nnethercote
jhpratt Apr 21, 2025
064187b
Rollup merge of #140074 - aDotInTheVoid:auto-test, r=GuillaumeGomez
jhpratt Apr 21, 2025
adc0473
Rollup merge of #140076 - aDotInTheVoid:jsondocline, r=GuillaumeGomez
jhpratt Apr 21, 2025
4c5a95f
Rollup merge of #140081 - Berrysoft:update-libc-172, r=tgross35
jhpratt Apr 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
LocalKey<T>: document that the dtor should not panic
  • Loading branch information
ShE3py committed Apr 18, 2025
commit 0d56e3eed1c5f3edea5cae6171e7a706ad792463
6 changes: 5 additions & 1 deletion library/std/src/thread/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ use crate::fmt;
///
/// Initialization is dynamically performed on the first call to a setter (e.g.
/// [`with`]) within a thread, and values that implement [`Drop`] get
/// destructed when a thread exits. Some caveats apply, which are explained below.
/// destructed when a thread exits. Some platform-specific caveats apply, which
/// are explained below.
/// Note that, should the destructor panics, the whole process will be [aborted].
///
/// A `LocalKey`'s initializer cannot recursively depend on itself. Using a
/// `LocalKey` in this way may cause panics, aborts or infinite recursion on
/// the first call to `with`.
///
/// [aborted]: crate::process::abort
///
/// # Single-thread Synchronization
///
/// Though there is no potential race with other threads, it is still possible to
Expand Down