Rollup merge of #33578 - durka:patch-21, r=alexcrichton
update tracking issue for once_poison The tracking issue for once_poison was noted as #31688 which was closed, so it now points to the new #33577.
This commit is contained in:
commit
87a22885a0
1 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ unsafe impl Send for Once {}
|
||||||
|
|
||||||
/// State yielded to the `call_once_force` method which can be used to query
|
/// State yielded to the `call_once_force` method which can be used to query
|
||||||
/// whether the `Once` was previously poisoned or not.
|
/// whether the `Once` was previously poisoned or not.
|
||||||
#[unstable(feature = "once_poison", issue = "31688")]
|
#[unstable(feature = "once_poison", issue = "33577")]
|
||||||
pub struct OnceState {
|
pub struct OnceState {
|
||||||
poisoned: bool,
|
poisoned: bool,
|
||||||
}
|
}
|
||||||
|
@ -218,7 +218,7 @@ impl Once {
|
||||||
/// The closure `f` is yielded a structure which can be used to query the
|
/// The closure `f` is yielded a structure which can be used to query the
|
||||||
/// state of this `Once` (whether initialization has previously panicked or
|
/// state of this `Once` (whether initialization has previously panicked or
|
||||||
/// not).
|
/// not).
|
||||||
#[unstable(feature = "once_poison", issue = "31688")]
|
#[unstable(feature = "once_poison", issue = "33577")]
|
||||||
pub fn call_once_force<F>(&'static self, f: F) where F: FnOnce(&OnceState) {
|
pub fn call_once_force<F>(&'static self, f: F) where F: FnOnce(&OnceState) {
|
||||||
// same as above, just with a different parameter to `call_inner`.
|
// same as above, just with a different parameter to `call_inner`.
|
||||||
if self.state.load(Ordering::SeqCst) == COMPLETE {
|
if self.state.load(Ordering::SeqCst) == COMPLETE {
|
||||||
|
@ -360,7 +360,7 @@ impl OnceState {
|
||||||
///
|
///
|
||||||
/// Once an initalization routine for a `Once` has panicked it will forever
|
/// Once an initalization routine for a `Once` has panicked it will forever
|
||||||
/// indicate to future forced initialization routines that it is poisoned.
|
/// indicate to future forced initialization routines that it is poisoned.
|
||||||
#[unstable(feature = "once_poison", issue = "31688")]
|
#[unstable(feature = "once_poison", issue = "33577")]
|
||||||
pub fn poisoned(&self) -> bool {
|
pub fn poisoned(&self) -> bool {
|
||||||
self.poisoned
|
self.poisoned
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue