Skip to content

Unable to compile cargo master #7043

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

Closed
leopck opened this issue Jun 19, 2019 · 4 comments
Closed

Unable to compile cargo master #7043

leopck opened this issue Jun 19, 2019 · 4 comments
Labels
C-bug Category: bug

Comments

@leopck
Copy link

leopck commented Jun 19, 2019

Problem

Unable to compile the cargo master

error: internal compiler error: src/librustc/ty/subst.rs:480: Type parameter `T/#1` (T/1) out of range when substituting (root type=Some(T)) substs=[T]

thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:526:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
error: aborting due to previous error


note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.33.0 (2aa4c46cf 2019-02-28) running on x86_64-unknown-linux-gnu

note: compiler flags: -C opt-level=3 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

error: Could not compile `sized-chunks`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Steps

  1. git clone https://github.com/rust-lang/cargo
  2. cd cargo
  3. cargo build --release

Possible Solution(s)

Notes

Output of cargo version:

cargo version
cargo 1.33.0 (f099fe94b 2019-02-12)
@leopck leopck added the C-bug Category: bug label Jun 19, 2019
@ehuss
Copy link
Contributor

ehuss commented Jun 19, 2019

cargo 1.33.0 (f099fe9 2019-02-12)

Can you try with a more recent version of rust? Cargo generally only supports current stable (which is 1.35 right now).

@matthiaskrgr
Copy link
Member

Looks like rust-lang/rust-clippy#4121

@ehuss
Copy link
Contributor

ehuss commented Jun 24, 2019

Oh, haha, I even filed that, I forgot!

Yea, I can repro that it is an issue with 1.33, and that a newer version should work. Considering that this specific case has been fixed in newer versions of rust (by rust-lang/rust#57606 I believe), I'm going to close this.

@ehuss ehuss closed this as completed Jun 24, 2019
@leopck
Copy link
Author

leopck commented Jun 30, 2019

Alright thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants