Skip to content

Commit ca5a92b

Browse files
committed
rfc, cfg-path-version: mention target_has_atomic in rationale.
1 parent 4618306 commit ca5a92b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/0000-cfg-path-version.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ However, doing so even once means that you will need to release new versions
344344
of your crate. If you instead use `accessible(..)` you won't need to use
345345
it even once unless the name of the path changes in-between.
346346

347+
Another use case `accessible(..)` supports that `version(..)` doesn't is checking
348+
support for atomic types, e.g. `accessible(::std::sync::atomic::AtomicU8)`.
349+
This subsumes the proposed `#[cfg(target_has_atomic = "..")]` construct.
350+
347351
### Preventing relative paths
348352

349353
The reason why we have enforced that all paths must start with `::` inside

0 commit comments

Comments
 (0)