Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when integer constant does not fit #3084

Closed
jruderman opened this issue Aug 1, 2012 · 2 comments
Closed

Warn when integer constant does not fit #3084

jruderman opened this issue Aug 1, 2012 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@jruderman
Copy link
Contributor

fn main()
{
    let x : int = 0x12345678_12345678_12345678;
    assert x != 0x12345678_12345678;
}
@catamorphism
Copy link
Contributor

Nominating for milestone 5, production-ready

@catamorphism
Copy link
Contributor

actually, I think #4220 covers this pretty well.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Enable `stdin_disable_all_formatting_test` test
RalfJung pushed a commit to RalfJung/rust that referenced this issue Sep 25, 2023
remove some dead code

and add a comment in the AVX test
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Note that with this upgrade Kani can no longer automatically detect loop bounds when using range.

For more details, see: model-checking/kani#3088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants