- 
        Couldn't load subscription status. 
- Fork 13.9k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant 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.Performance or correctness regression from stable to nightly.
Description
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
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant 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.Performance or correctness regression from stable to nightly.