-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Hover 'pub const MAX: Self = -1' for i128::MAX #18816
Comments
We don't seem to handle the bitshift here? |
Ah, the code here does all the integer math on rust-analyzer/crates/hir-ty/src/mir/eval.rs Lines 1341 to 1406 in 7e639ee
(which causes the shift on the u128 that is used by the definition to carry the sign) |
rust-analyzer version: rust-analyzer version: 0.4.2243-standalone (6725e04 2025-01-04) I found this issue is fixed in the Pre-Release Version of rust-analyzer extension in VSCode. Thanks! I love rust-analyzer! |
rust-analyzer version: rust-analyzer version: 0.3.2237-standalone (59bc7b4 2024-12-29)
rustc version: rustc 1.83.0 (90b35a623 2024-11-26)
editor or extension: VSCode 1.96.2, Zed 0.167.1
relevant settings: Nothing in particular
repository link (if public, optional): (eg. rust-analyzer)
code snippet to reproduce:
I use hover function to 'MAX' part and expect:
But it shows:
related issues: #18116
The text was updated successfully, but these errors were encountered: