Skip to content

Compiler error while compiling Winrt #66402

Closed as not planned
Closed as not planned
@tensor-programming

Description

@tensor-programming

Trying to compile winrt with latest nightly msvc got a internal compiler error.

error: internal compiler error: src\librustc_traits\normalize_erasing_regions.rs:42: could not fully 
normalize `unsafe extern "system" fn(*mut rt::gen::windows::foundation::AsyncActionProgressHandler<TProgress>, *mut 
rt::gen::windows::foundation::IAsyncActionWithProgress<TProgress>, <TProgress as 
rt::RtType>::Abi) -> i32`
note: rustc 1.41.0-nightly (ded5ee001 2019-11-13) running on x86_64-pc-windows-msvc

note: compiler flags: -C debuginfo=2 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [normalize_ty_after_erasing_regions] normalizing `ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: All, def_id: None }, value: unsafe extern "system" fn(*mut rt::gen::windows::foundation::AsyncActionProgressHandler<TProgress>, *mut rt::gen::windows::foundation::IAsyncActionWithProgress<TProgress>, <TProgress as rt::RtType>::Abi) -> i32 }`
#1 [lint_mod] linting module `rt::gen::windows::foundation`
#2 [analysis] running analysis passes on this crate
end of query stack

Saw similar error over with this one: #64908 so figured I would report here and not in the winrt github. Project compiles fine with latest stable on x86-64-pc-windows-msvc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-windowsOperating system: WindowsO-windows-msvcToolchain: MSVC, Operating system: WindowsO-x86_64Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions