Skip to content

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

@novacrazy

Description

@novacrazy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions