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

Compile errors on latest nightly (2020-01-02) #2744

Closed
novacrazy opened this issue Jan 3, 2020 · 1 comment
Closed

Compile errors on latest nightly (2020-01-02) #2744

novacrazy opened this issue Jan 3, 2020 · 1 comment

Comments

@novacrazy
Copy link

Trying to install 823c152 with cargo xtask install with rustc 1.42.0-nightly (0a58f5864 2020-01-02) results in this error:

error: truncating cast: the value 18446744073709519013 requires 64 bits but the target type is only 32 bits
   --> crates\ra_lsp_server\src\main_loop.rs:718:43
    |
718 |                     Response::new_err(id, ErrorCode::InternalError as i32, e.to_string())
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[deny(const_err)]` on by default

error: truncating cast: the value 18446744073709518815 requires 64 bits but the target type is only 32 bits
   --> crates\ra_lsp_server\src\main_loop.rs:714:25
    |
714 |                         ErrorCode::ContentModified as i32,
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: truncating cast: the value 18446744073709519016 requires 64 bits but the target type is only 32 bits
   --> crates\ra_lsp_server\src\world.rs:242:23
    |
242 |                 code: ErrorCode::InvalidRequest as i32,
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: truncating cast: the value 18446744073709519014 requires 64 bits but the target type is only 32 bits
   --> crates\ra_lsp_server\src\main_loop\handlers.rs:502:13
    |
502 |             ErrorCode::InvalidParams as i32,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: truncating cast: the value 18446744073709519015 requires 64 bits but the target type is only 32 bits
   --> crates\ra_lsp_server\src\main_loop.rs:691:21
    |
691 |                     ErrorCode::MethodNotFound as i32,
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: truncating cast: the value 18446744073709518816 requires 64 bits but the target type is only 32 bits
   --> crates\ra_lsp_server\src\main_loop.rs:522:21
    |
522 |                     ErrorCode::RequestCanceled as i32,
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 6 previous errors

error: could not compile `ra_lsp_server`.

Is this an error with rust-analyzer or the latest nightly?

@sinkuu
Copy link
Contributor

sinkuu commented Jan 3, 2020

This will be fixed by rust-lang/rust#67822

@matklad matklad closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants