-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Location
rust/library/std/src/sync/poison.rs
Lines 3 to 16 in bc4376f
//! # Poisoning | |
//! | |
//! All synchronization objects in this module implement a strategy called "poisoning" | |
//! where if a thread panics while holding the exclusive access granted by the primitive, | |
//! the state of the primitive is set to "poisoned". | |
//! This information is then propagated to all other threads | |
//! to signify that the data protected by this primitive is likely tainted | |
//! (some invariant is not being upheld). | |
//! | |
//! The specifics of how this "poisoned" state affects other threads | |
//! depend on the primitive. See [#Overview] bellow. | |
//! | |
//! For the alternative implementations that do not employ poisoning, | |
//! see `std::sys::nonpoisoning`. |
Summary
The last line references the module std::sys::nonpoisoning
, this is wrong, it should reference std::sync::nonpoisoning
(notice the sys -> sync
).
For the alternative implementations that do not employ poisoning, see
std::sys::nonpoisoning
.
Minor issue since this is a nightly only experimental API.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.