Cannot compile with Rust 1.76.0
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci la build con Rust 1.76.0 e ispeziona rustpython-ast-0.3.0/src/impls.rs intorno alle righe 60-62, dove falliscono le asserzioni sulle dimensioni per Stmt e Pattern. Confronta le dimensioni dei tipi generati tra Rust 1.75.0 e 1.76.0; il lavoro è completato quando il progetto compila correttamente con Rust 1.76.0 senza asserzioni sulle dimensioni non valide.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Works with 1.75.0, but here is the issue with 1.76.0
--> /home/rfiszel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustpython-ast-0.3.0/src/impls.rs:60:1
|
60 | static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `generic::Stmt` (1216 bits)
= note: target type: `[u8; 160]` (1280 bits)
= note: this error originates in the macro `static_assertions::assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /home/rfiszel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustpython-ast-0.3.0/src/impls.rs:62:1
|
62 | static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: `generic::Pattern` (704 bits)
= note: target type: `[u8; 96]` (768 bits)
= note: this error originates in the macro `static_assertions::assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)
- Lingua principale
- Rust
- Stelle
- 117
- Fork
- 38
- Merge medio
- 4g 7h
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RustPython/Parser
-
Maintenance status Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 25/100
RustPython/Parser#140 · 3 commenti ·
-
`unic` is unmaintained Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
RustPython/Parser#139 · 3 commenti ·
-
cargo audit paste Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
RustPython/Parser#137 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
RustPython/Parser#133 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
RustPython/Parser#130 ·
Tutte le issue di RustPython/Parser
Issue simili
-
Accept -c in more positions Apertaarea: compat bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
area: dogs bug priority: P3 silent failure test-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
MystenLabs/sui#28056 · 1 commento ·
-
type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Luminous-Dynamics/mycelix#2577 ·