Skip to content

UWP standard library no longer builds  #79203

Closed
@jdm

Description

@jdm

Code

Running cargo build --target x86_64-uwp-windows-msvc -Z build-std yields:

error[E0432]: unresolved import `SetThreadStackGuarantee`
    --> /home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/windows/c.rs:1038:12
     |
1038 |     pub fn SetThreadStackGuarantee(_size: *mut c_ulong) -> BOOL {
     |            ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `SetThreadStackGuarantee`
error: aborting due to previous error
error: could not compile `std`

Version it worked on

This works in July 27 rustc nightly.

Version with regression

It's broken in the Oct 6 rustc nightly, but possibly earlier.

Metadata

Metadata

Assignees

Labels

O-windows-msvcToolchain: MSVC, Operating system: WindowsP-mediumMedium priorityregression-untriagedUntriaged performance or correctness regression.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions