目次

2025.09.08 Zed editor ビルドエラー

エラー

   Compiling portable-pty v0.9.0

   Compiling agent-client-protocol v0.2.0-alpha.6

   Compiling terminal_view v0.1.0 (C:\Users\s-matsui\zed\crates\terminal_view)

error[E0658]: use of unstable library feature `result_flattening`

   --> crates\terminal_view\src\terminal_panel.rs:504:14

    |

504 |             .flatten();

    |              ^^^^^^^

    |

    = note: see issue #70142 <https://github.com/rust-lang/rust/issues/70142> for more information



For more information about this error, try `rustc --explain E0658`.

error: could not compile `terminal_view` (lib) due to 1 previous error

対応

result_flattening がサポートされているRustのナイトリービルドを使用することで、このエラーを回避できます。

Rustのバージョン管理ツールであるrustupを使用している場合、以下のコマンドでナイトリービルドをインストールし、切り替えることができます。

rustup install nightly
rustup override set nightly