-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
fix: overflowing bin hex #136424
fix: overflowing bin hex #136424
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @fmease (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
You are expected to fix the test affected by your change, in this case Please refer to the rustc dev guide for instructions on how to write, run and change test files. Btw I left a |
@11happy I added a PR to bless the test case, you could please merge it? |
@s-cerevisiae I have fixed the test case & added another one as well wherer earlier response was incorrect. |
@vayunbiyani you could perhaps ask the respective maintainers to merge your corresponding PR, I don't have merge rights. |
The PR is on your fork so you should be good to do so! |
Thank you for the PR I have integrated those changes. |
☔ The latest upstream changes (presumably #127541) made this pull request unmergeable. Please resolve the merge conflicts. |
17d15c4
to
6ad0c41
Compare
Humble Ping! @s-cerevisiae I have also fixed the merge conflict. |
This comment has been minimized.
This comment has been minimized.
@11happy The CI is failing because #136958 & #137348 tweaked the appearance of certain structured suggestions. You simply need to rebase & rebless Please also squash the two commits into a single one (since the diff is pretty small). The
([@]s-cerevisiae is not an official r-l/r reviewer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After that though, we're good to go! Thanks for working on this
This comment has been minimized.
This comment has been minimized.
e035c0a
to
0c3840b
Compare
Signed-off-by: 11happy <soni5happy@gmail.com> rebase Signed-off-by: 11happy <soni5happy@gmail.com> fix: rebless Signed-off-by: 11happy <soni5happy@gmail.com>
0c3840b
to
dbf8fe0
Compare
Thanks @fmease , I have reblessed & rebased the commits as well. Thank you for providing me opportunity to work on this, I am new to this rust community, interested to learn & contribute. |
Thank you and welcome! |
Rollup of 9 pull requests Successful merges: - rust-lang#136424 (fix: overflowing bin hex) - rust-lang#136824 (solver cycles are coinductive once they have one coinductive step) - rust-lang#137220 (Support `rust.channel = "auto-detect"`) - rust-lang#137712 (Clean up TypeckResults::extract_binding_mode) - rust-lang#137713 (Fix enzyme build errors) - rust-lang#137748 (Fix method name in `TyCtxt::hir_crate()` documentation) - rust-lang#137778 (update enzyme to handle range metadata) - rust-lang#137780 (Fix typo in query expansion documentation) - rust-lang#137788 (Bump `rustc_{codegen_ssa,llvm}` `cc` to 1.2.16 to fix `x86` Windows jobs on newest Windows SDK) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#136424 - 11happy:overflow.hex.fix, r=fmease fix: overflowing bin hex **Overview:** - This PR fixes rust-lang#135404. **Testing** - Tested the updated functionality. - previously emitted diagnostics: ```bash error: literal out of range for `i32` --> src/main.rs:2:9 | 2 | _ = 0x8FFF_FFFF_FFFF_FFFE; | ^^^^^^^^^^^^^^^^^^^^^ | = note: the literal `0x8FFF_FFFF_FFFF_FFFE` (decimal `10376293541461622782`) does not fit into the type `i32` and will become `-2i32` = help: consider using the type `i128` instead = note: `#[deny(overflowing_literals)]` on by default help: to use as a negative number (decimal `-2`), consider using the type `u32` for the literal and cast it to `i32` | 2 | _ = 0x8FFF_FFFF_FFFF_FFFEu32 as i32; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` - current diagnostics: ```bash error: literal out of range for `i32` --> ../temp.rs:2:13 | 2 | let x = 0x8FFF_FFFF_FFFF_FFFE; | ^^^^^^^^^^^^^^^^^^^^^ | = note: the literal `0x8FFF_FFFF_FFFF_FFFE` (decimal `10376293541461622782`) does not fit into the type `i32` and will become `-2i32` = help: consider using the type `u64` instead = note: `#[deny(overflowing_literals)]` on by default help: to use as a negative number (decimal `-2`), consider using the type `u64` for the literal and cast it to `i32` | 2 | let x = 0x8FFF_FFFF_FFFF_FFFEu64 as i32; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Overview:
overflowing_bin_hex
#135404.Testing