[Migrated] `cargo clippy` breaks the nested `cargo build` from `spirv-builder`.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Rust
- Sterne
- 3.4k
- Forks
- 126
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Issue automatically imported from old repo: https://github.com/EmbarkStudios/rust-gpu/issues/864
Old labels: t: bug
Originally creatd by hatoo on 2022-04-16T15:06:01Z
Expected Behaviour
cargo clippy works without a crash in this project.
It worked fine in older rust-gpu.
Example & Steps To Reproduce
- Clone this
cargo clippy- Got error
PS C:\Users\hato2\Desktop\zenn-content\rasterization-example> cargo clippy
Compiling rasterization-example v0.1.0 (C:\Users\hato2\Desktop\zenn-content\rasterization-example)
error: failed to run custom build command for `rasterization-example v0.1.0 (C:\Users\hato2\Desktop\zenn-content\rasterization-example)`
Caused by:
process didn't exit successfully: `C:\Users\hato2\Desktop\zenn-content\rasterization-example\target\debug\build\rasterization-example-bf4f4e1cfd480af7\build-script-build` (exit code: 1)
--- stderr
Compiling core v0.0.0 (C:\Users\hato2\.rustup\toolchains\nightly-2022-04-11-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
Compiling rustc-std-workspace-core v1.99.0 (C:\Users\hato2\.rustup\toolchains\nightly-2022-04-11-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)
Compiling compiler_builtins v0.1.70
Compiling libm v0.2.1
Compiling bitflags v1.3.2
Compiling spirv-types v0.4.0-alpha.12 (https://github.com/EmbarkStudios/rust-gpu.git#11e21c64)
Compiling num-traits v0.2.14
Compiling glam v0.20.2
Compiling spirv-std v0.4.0-alpha.12 (https://github.com/EmbarkStudios/rust-gpu.git#11e21c64)
Compiling shader v0.1.0 (C:\Users\hato2\Desktop\zenn-content\rasterization-example\shader)
thread 'rustc' panicked at 'not yet implemented', C:\Users\hato2\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\116bf9c\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:564:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/EmbarkStudios/rust-gpu/issues/new
note: rustc 1.62.0-nightly (1f7fb6413 2022-04-10) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type lib --crate-type dylib -C opt-level=3 -C embed-bitcode=no -Z unstable-options -Z codegen-backend=C:\Users\hato2\Desktop\zenn-content\rasterization-example\target\debug\rustc_codegen_spirv.dll -C symbol-mangling-version=v0
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
note: `rust-gpu` version 0.4.0-alpha.12
error: could not compile `shader`
Error: BuildFailed
System Info
- Rust: rustc 1.62.0-nightly (1f7fb6413 2022-04-10)
- OS: Windows 11
- GPU: RTX 2080ti
- SPIR-V: SPIRV-Tools v2022.2-dev v2022.1-4-g20b122b2
Backtrace
Backtrace
<backtrace>
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere den Fehler mit cargo clippy im verlinkten Projekt rasterization-example unter Verwendung der gemeldeten Rust- und rust-gpu-Revisionen. Beginne bei crates/rustc_codegen_spirv/src/codegen_cx/mod.rs:564, wo der Panic gemeldet wird, und verfolge den verschachtelten Build-Pfad von spirv-builder. Erledigt ist die Aufgabe, wenn das Beispiel cargo clippy ohne den Compiler-Panic abschließt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- compilers, computer-graphics
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100