Files
rust/library/std/src/sync
Vastargazing f176d8bd2d std::sync::poison: disable auto_cfg on PoisonError::new
PoisonError::new is defined twice, once under #[cfg(panic = "unwind")]
and once under its negation, so exactly one definition exists in any
given build. rustdoc's auto_cfg only sees whichever cfg survived
expansion and tags the method as available under that cfg only, even
though it is callable in every configuration - it just panics under
panic=abort instead of returning.

Disable auto_cfg on both variants so the portability note stops
implying the method doesn't exist elsewhere. The doc comment already
explains the panic=abort behavior in prose, so the cfg doesn't need to
leak into the generated badge.

Add a minimal regression test.
2026-07-24 11:05:35 +03:00
..
2025-11-30 17:14:46 +08:00
2026-05-31 06:58:19 -07:00
2026-07-13 19:41:42 +02:00
2026-01-05 09:47:15 +11:00