When working on Miri I noticed "portable-atomics" gets rebuilt every time I switch between a check-build and actutally running tests. This boils down to RUSTFLAGS
being different between the two invocations: in check builds it contains -Zunstable-options
but in test builds it does not.