Skip to content

rls no longer builds after rust-lang/rust#61274 #61287

Closed

Description

@rust-highfive

Hello, this is your friendly neighborhood mergebot.
After merging PR #61274, I observed that the tool rls no longer builds.
A follow-up PR to the repository https://github.com/rust-lang/rls is needed to fix the fallout.

cc @Centril, do you think you would have time to do the follow-up work?
If so, that would be great!

cc @Centril, the PR reviewer, and @rust-lang/compiler -- nominating for prioritization.

Activity

  1. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on May 28, 2019
  2. Centril commented on May 28, 2019

    @Centril
    Contributor

    I'm going to guess that #61164 is to blame; cc @RalfJung

  3. assigned and unassigned on May 28, 2019
  4. RalfJung commented on May 28, 2019

    @RalfJung
    Member

    The fix is mostly to replace Scalar::Bits { bits, size } by Scalar::Raw { data, size }.

    But really RLS shouldn't be using such implementation details...

  5. RalfJung commented on May 28, 2019

    @RalfJung
    Member

    The logs look like the failure is in clippy, not RLS? I am confused.

    [01:20:23] �[0m�[0m�[1m�[32m   Compiling�[0m clippy_lints v0.0.212 (/checkout/src/tools/clippy/clippy_lints)
    [01:20:28] �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: no variant `Bits` in enum `rustc_mir::interpret::Scalar<_, _>`�[0m
    [01:20:28] �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0msrc/tools/clippy/clippy_lints/src/consts.rs:475:36�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
    [01:20:28] �[0m�[1m�[38;5;12m475�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m        ConstValue::Scalar(Scalar::Bits { bits: b, .. }) => match result.ty.sty {�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                           �[0m�[0m�[1m�[38;5;12m--------�[0m�[0m�[1m�[38;5;9m^^^^�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                           �[0m�[0m�[1m�[38;5;12m|�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                           �[0m�[0m�[1m�[38;5;12mvariant not found in `rustc_mir::interpret::Scalar<_, _>`�[0m
    [01:20:28] 
    [01:20:28] �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: no variant `Bits` in enum `rustc_mir::interpret::Scalar<_, _>`�[0m
    [01:20:28] �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0msrc/tools/clippy/clippy_lints/src/consts.rs:475:36�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
    [01:20:28] �[0m�[1m�[38;5;12m475�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m        ConstValue::Scalar(Scalar::Bits { bits: b, .. }) => match result.ty.sty {�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                           �[0m�[0m�[1m�[38;5;12m--------�[0m�[0m�[1m�[38;5;9m^^^^�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                           �[0m�[0m�[1m�[38;5;12m|�[0m
    [01:20:28] �[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m                           �[0m�[0m�[1m�[38;5;12mvariant not found in `rustc_mir::interpret::Scalar<_, _>`�[0m
    [01:20:28] 
    [01:20:31] �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: aborting due to previous error�[0m
    

    (Great logs as usual, thanks Travis.)

  6. eddyb commented on May 28, 2019

    @eddyb
    Contributor

    @RalfJung breaking clippy breaks RLS, AFAIK.

  7. matthiaskrgr commented on May 28, 2019

    @matthiaskrgr
    Member

    rust-lang/rust-clippy#4152 will fix it, only needs ci to pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions