bytecodealliance / bytecodealliance/rustix

Intermittent "feature cannot be used on stable release channel"

Abierto
#526 19 comentarios 19 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
2.1k
Forks
296
Merge medio
6 d 22 h
PR fusionados (30 d)
4

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza revisando el error reportado en src/lib.rs:99 y el comportamiento de build-script; después, investiga cómo interactúan la toolchain nightly predeterminada y el archivo rust-toolchain que selecciona Rust 1.65. Comprueba si los cambios en RUSTC se detectan durante las compilaciones. Se considera terminado cuando se haya reproducido o explicado el error intermitente del stable-channel y se haya validado el comportamiento con una prueba de compilación adecuada.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
build-system
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.