Open
Description
In rust-lang/rust#120232, std's build script was moved to using the TARGET_OS and other fine-grained environment variables set by Cargo. This means that some JSON targets (regardless of filename, which is the previous filter?) do not enable the restricted_std mode.
Before stabilizing -Zbuild-std, we will want to figure out what guarantees we want to make here.