bytecodealliance / bytecodealliance/rustix

Intermittent "feature cannot be used on stable release channel"

オープン
#526 コメント 19 件 リアクション 19 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
2.1k
フォーク
296
平均マージ
6日 22時間
マージ済み PR(30日)
4

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず src/lib.rs:99 で報告されたエラーと build-script の動作を確認し、次にデフォルトの nightly toolchain と Rust 1.65 を選択する rust-toolchain ファイルがどのように相互作用するかを調査してください。ビルド中に RUSTC の変更が検出されるか確認してください。stable-channel の断続的なエラーを再現または説明し、適切なビルドテストで動作を検証できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。