Use a hardcoded constant instead of calling OpenProcessToken. by smmalis37 · Pull Request #119032 · rust-lang/rust (original) (raw)
The target is probably too new to be in the bootstrap compiler (which is currently beta 2013-11-13). The bootstrap compiler will next be updated in a week or two. In the meantime, you can put something like this at the top of the file:
#![cfg_attr(bootstrap, allow(unexpected_cfgs))]
Note that the better and recommended way is to add the exception to the "extra check-cfg list" in bootstrap:
(Some(Mode::Std), "target_env", Some(&["libnx"])), |
---|
// (Some(Mode::Std), "target_os", Some(&[])), |
(Some(Mode::Std), "target_arch", Some(&["spirv", "nvptx", "xtensa"])), |