Skip to content

Builds Failing; Can someone point me to a Racer version + nightly version that builds? #1113

Open

Description

@jrmiller82
No description provided.

Activity

  1. rjpower4 commented on May 27, 2020

    @rjpower4

    To add specifics, I'm not sure if this is the same error that @jrmiller82 is getting, but my build is failing with the following:

    error[E0407]: method `forward_checked` is not a member of trait `std::iter::Step`
      --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:11:1
       |
    11 | / rustc_index::newtype_index! {
    12 | |     pub struct CrateId {
    13 | |         ENCODABLE = custom
    14 | |     }
    15 | | }
       | |_^ not a member of trait `std::iter::Step`
       |
       = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0407]: method `backward_checked` is not a member of trait `std::iter::Step`
      --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:11:1
       |
    11 | / rustc_index::newtype_index! {
    12 | |     pub struct CrateId {
    13 | |         ENCODABLE = custom
    14 | |     }
    15 | | }
       | |_^ not a member of trait `std::iter::Step`
       |
       = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0407]: method `forward_checked` is not a member of trait `std::iter::Step`
       --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:118:1
        |
    118 | / rustc_index::newtype_index! {
    119 | |     /// A DefIndex is an index into the hir-map for a crate, identifying a
    120 | |     /// particular definition. It should really be considered an interned
    121 | |     /// shorthand for a particular DefPath.
    ...   |
    128 | |     }
    129 | | }
        | |_^ not a member of trait `std::iter::Step`
        |
        = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0407]: method `backward_checked` is not a member of trait `std::iter::Step`
       --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:118:1
        |
    118 | / rustc_index::newtype_index! {
    119 | |     /// A DefIndex is an index into the hir-map for a crate, identifying a
    120 | |     /// particular definition. It should really be considered an interned
    121 | |     /// shorthand for a particular DefPath.
    ...   |
    128 | |     }
    129 | | }
        | |_^ not a member of trait `std::iter::Step`
        |
        = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0407]: method `forward_checked` is not a member of trait `std::iter::Step`
        --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/symbol.rs:1034:1
         |
    1034 | / rustc_index::newtype_index! {
    1035 | |     pub struct SymbolIndex { .. }
    1036 | | }
         | |_^ not a member of trait `std::iter::Step`
         |
         = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0407]: method `backward_checked` is not a member of trait `std::iter::Step`
        --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/symbol.rs:1034:1
         |
    1034 | / rustc_index::newtype_index! {
    1035 | |     pub struct SymbolIndex { .. }
    1036 | | }
         | |_^ not a member of trait `std::iter::Step`
         |
         = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0199]: implementing the trait `std::iter::Step` is not unsafe
      --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:11:1
       |
    11 | / rustc_index::newtype_index! {
    12 | |     pub struct CrateId {
    13 | |         ENCODABLE = custom
    14 | |     }
    15 | | }
       | |_^
       |
       = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0199]: implementing the trait `std::iter::Step` is not unsafe
       --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:118:1
        |
    118 | / rustc_index::newtype_index! {
    119 | |     /// A DefIndex is an index into the hir-map for a crate, identifying a
    120 | |     /// particular definition. It should really be considered an interned
    121 | |     /// shorthand for a particular DefPath.
    ...   |
    128 | |     }
    129 | | }
        | |_^
        |
        = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error[E0199]: implementing the trait `std::iter::Step` is not unsafe
        --> /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/symbol.rs:1034:1
         |
    1034 | / rustc_index::newtype_index! {
    1035 | |     pub struct SymbolIndex { .. }
    1036 | | }
         | |_^
         |
         = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
    
    error: aborting due to 9 previous errors
    
    Some errors have detailed explanations: E0199, E0407.
    For more information about an error, try `rustc --explain E0199`.
    error: could not compile `rustc-ap-rustc_span`.
    
    Caused by:
      process didn't exit successfully: `rustc --crate-name rustc_ap_rustc_span --edition=2018 /home/rpower/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -Cembed-bitcode=no -C metadata=afee91cdb52fc886 -C extra-filename=-afee91cdb52fc886 --out-dir /tmp/cargo-installTdABMU/release/deps -L dependency=/tmp/cargo-installTdABMU/release/deps --extern cfg_if=/tmp/cargo-installTdABMU/release/deps/libcfg_if-33adbc7c23a934c7.rmeta --extern log=/tmp/cargo-installTdABMU/release/deps/liblog-fc3f06ec9d60fa82.rmeta --extern md5=/tmp/cargo-installTdABMU/release/deps/libmd5-e4465e611ae1336f.rmeta --extern arena=/tmp/cargo-installTdABMU/release/deps/librustc_ap_arena-28626272775e134d.rmeta --extern rustc_data_structures=/tmp/cargo-installTdABMU/release/deps/librustc_ap_rustc_data_structures-2b83d3f3dd746824.rmeta --extern rustc_index=/tmp/cargo-installTdABMU/release/deps/librustc_ap_rustc_index-85423a842d9ad744.rmeta --extern rustc_macros=/tmp/cargo-installTdABMU/release/deps/librustc_ap_rustc_macros-445534ca456af263.so --extern rustc_serialize=/tmp/cargo-installTdABMU/release/deps/librustc_ap_serialize-42bf71bc97b3e29b.rmeta --extern scoped_tls=/tmp/cargo-installTdABMU/release/deps/libscoped_tls-ccb26adb7ab25ffe.rmeta --extern sha1=/tmp/cargo-installTdABMU/release/deps/libsha1-e434ae8f52f72704.rmeta --extern unicode_width=/tmp/cargo-installTdABMU/release/deps/libunicode_width-e8d1ca33ecdf080c.rmeta --cap-lints allow -L native=/tmp/cargo-installTdABMU/release/build/psm-aff7e0ae672476bd/out` (exit code: 1)
    warning: build failed, waiting for other jobs to finish...
    error: failed to compile `racer v2.1.34`, intermediate artifacts can be found at `/tmp/cargo-installTdABMU`
    
    Caused by:
      build failed
    
    
  2. zaxguo commented on May 27, 2020

    @zaxguo

    2.1.33 works for rustc-nightly 1.45.0 (2020-05-14)
    simply run: cargo +nightly install --version 2.1.33 racer

  3. jrmiller82 commented on May 27, 2020

    @jrmiller82
    Author

    I had to run:

    cargo +nightly-2020-05-15 install --version 2.1.33 racer as I had multiple toolchains installed. It built! Thank you.

    I think it might be wise to put some notes about this in the install section i.e. "If racer won't build, here's a command to install an earlier version" for those of us who are more casual rustaceans. :)

  4. marmistrz commented on May 28, 2020

    @marmistrz

    Since nightly has been required for racer for a long time and may break, maybe it would be a good idea to provide pre-built binaries, just like https://github.com/mozilla/sccache does? This would also make it easier for users running rust without rustup (e.g. through their distro) to install a recent version of racer.

  5. jsoo1 commented on Jun 17, 2020

    @jsoo1

    If nightlies are supported, can the working nightly version be specified? It would really help packaging efforts on nix and guix.

  6. mabushey commented on Aug 27, 2020

    @mabushey

    I would love a binary OR a docker container that can do whatever it wants such as rustc inside the container. It seems like the rust community hates Linux. I'm not running running Windows, I have a package manager.

    I was able to compile it in an Ubuntu docker container using the rustup util. I then copied the executable out of the container to /usr/local/bin I also had to do apt-get install rust-src to make it work.

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

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