Closed
Description
rust/library/std/src/sync/once.rs
Lines 390 to 393 in 3227e35
Trying to initialize a poisoned Once
does not track it's caller, yielding panic messages like
thread 'null_data' panicked at 'Once instance has previously been poisoned', library/std/src/sync/once.rs:392:21
Can we add #[track_caller]
here? I've seen previous PRs regarding other performance-critical methods get rejected due to the overhead (?) track_caller
has.
Metadata
Metadata
Assignees
Labels
Category: An issue proposing an enhancement or a PR with one.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Help is requested to fix this issue.`#![feature(track_caller)]`Issue: In need of a decision.Relevant to the library team, which will review and decide on the PR/issue.