Skip to content

"exceeding bitshifts" lint does not always work in debug mode on playground #70660

@RalfJung

Description

@RalfJung

I tried this code:

#![crate_type = "lib"]
pub fn foo(x: i32) -> i32 {
    x << 33
}

I am building in debug mode on the playground.

I expected to see this happen: it should warn about the exceeding bitshift (like it does in release mode).

Instead, this happened: there is no warning,

Meta

Possibly related to #69021

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions