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

1.38: internal compiler error running cargo clippy on project with mysql_common dependency #64832

Closed
eddrift opened this issue Sep 27, 2019 · 3 comments

Comments

@eddrift
Copy link

eddrift commented Sep 27, 2019

...
Checking mysql_common v0.18.0
error: internal compiler error: src/librustc/ty/context.rs:516: node_type: no type for node `expr 5 (hir_id=HirId { owner: DefIndex(228), local_id: 255 })`

thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:644: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.38.0 (625451e37 2019-09-23) running on x86_64-apple-darwin

note: compiler flags: -C debuginfo=2 --crate-type lib

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

error: Could not compile `mysql_common`.

To learn more, run the command again with --verbose.
@eddrift
Copy link
Author

eddrift commented Sep 27, 2019

This is on macOS 10.14.6. The stack trace with RUST_BACKTRACE=1 is pretty content-free:

    Checking mysql_common v0.18.0
error: internal compiler error: src/librustc/ty/context.rs:516: node_type: no type for node `expr 5 (hir_id=HirId { owner: DefIndex(228), local_id: 255 })`

thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:644:9
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
...

for 69 frames

@eddrift
Copy link
Author

eddrift commented Sep 27, 2019

cargo clippy worked on this project with rust 1.37, and non-clippy builds seem to be fine with 1.38

@matthiaskrgr
Copy link
Member

Duplicate of rust-lang/rust-clippy#4579

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