rust-lang / rust-lang/rust-clippy
build failed with rust-clippy-rust-1.58.0
Open
Nobody has claimed this yet.
C-question
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Summary
I try to build the rust-clippy-rust-1.58.0, but it failed. the bellow is the error infor:
the command: cargo build
Version
rustc 1.58.1 (db9d1b20b 2022-01-20)
binary: rustc
commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b
commit-date: 2022-01-20
host: x86_64-unknown-linux-gnu
release: 1.58.1
LLVM version: 13.0.0
Error output
Backtrace
error[E0531]: cannot find tuple struct or tuple variant `FnKind` in this scope
--> clippy_utils/src/ast_utils.rs:253:17
|
253 | (Fn(box FnKind(ld, lf, lg, lb)), Fn(box FnKind(rd, rf, rg, rb))) => {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `FnKind` in this scope
--> clippy_utils/src/ast_utils.rs:253:49
|
253 | (Fn(box FnKind(ld, lf, lg, lb)), Fn(box FnKind(rd, rf, rg, rb))) => {
| ^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `TyAliasKind` in this scope
--> clippy_utils/src/ast_utils.rs:269:22
|
269 | (TyAlias(box TyAliasKind(ld, lg, lb, lt)), TyAlias(box TyAliasKind(rd, rg, rb, rt))) => {
| ^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `TyAliasKind` in this scope
--> clippy_utils/src/ast_utils.rs:269:64
|
269 | (TyAlias(box TyAliasKind(ld, lg, lb, lt)), TyAlias(box TyAliasKind(rd, rg, rb, rt))) => {
| ^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `TraitKind` in this scope
--> clippy_utils/src/ast_utils.rs:279:20
|
279 | (Trait(box TraitKind(la, lu, lg, lb, li)), Trait(box TraitKind(ra, ru, rg, rb, ri))) => {
| ^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct or tuple variant `TraitKind` in this scope
--> clippy_utils/src/ast_utils.rs:279:62
|
279 | (Trait(box TraitKind(la, lu, lg, lb, li)), Trait(box TraitKind(ra, ru, rg, rb, ri))) => {
| ^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type `ImplKind` in this scope
--> clippy_utils/src/ast_utils.rs:288:22
|
288 | Impl(box ImplKind {
| ^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type `ImplKind` in this scope
--> clippy_utils/src/ast_utils.rs:298:22
|
298 | Impl(box ImplKind {
| ^^^^^^^^ not found in this scope
Some errors have detailed explanations: E0422, E0531, E0554, E0599, E0609.
For more information about an error, try `rustc --explain E0422`.
error: could not compile `clippy_utils` due to 23 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running cargo build with rustc 1.58.1 and inspect the reported failures in clippy_utils/src/ast_utils.rs, especially the lines involving FnKind, TyAliasKind, TraitKind, and ImplKind. Done means the project builds successfully with the reported Rust toolchain and the relevant compilation errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100