Skip to content

winapi broken in recent nightly #65709

Closed
Closed
@retep998

Description

@retep998
error: attempt to shift left with overflow
   --> src\macros.rs:350:29
    |
350 |                   let mask = ((1 << ($r.end - $r.start)) - 1) << $r.start;
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
    | 
   ::: src\shared\d3dukmdt.rs:257:1
    |
257 | / BITFIELD!{D3DDDICB_LOCK2FLAGS Value: UINT [
258 | |     Reserved set_Reserved[0..32],
259 | | ]}
    | |__- in this macro invocation
    |
    = note: `#[deny(const_err)]` on by default

Using rustc 1.40.0-nightly (7979016af 2019-10-20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions