bytecodealliance / bytecodealliance/rustix

Intermittent "feature cannot be used on stable release channel"

Aperta
#526 19 commenti 19 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2.1k
Fork
294
Merge medio
6g 22h
PR unite (30g)
4

Descrizione

I temporarily got this error trying to build rustix as a dependency:
```
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /Users/jyn/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/rustix-0.36.4/src/lib.rs:99:26
|
99 | #![cfg_attr(rustc_attrs, feature(rustc_attrs))]
| ^^^^^^^^^^^^^^^^^^^^
```

I have unfortunately not been able to reproduce this error; I updated the version of rustix, which I originally thought fixed the issue, but when I downgraded to 0.36.4 I couldn't reproduce it again.

I think the build script needs to have `rerun-if-env-changed=RUSTC` or something like that? If it helps, my default toolchain is `nightly` but I have a `rust-toolchain` file that says to use 1.65.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia esaminando l'errore segnalato in src/lib.rs:99 e il comportamento di build-script, quindi analizza come interagiscono la toolchain nightly predefinita e il file rust-toolchain che seleziona Rust 1.65. Verifica se le modifiche a RUSTC vengono rilevate durante le build. Il lavoro è completato quando l'errore intermittente dello stable-channel viene riprodotto o spiegato e il comportamento viene validato con un test di build appropriato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
build-system
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.