killercup / killercup/rust-docstrings

Fails to build

オープン
#10 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
12
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

```
rust-docstrings> rustc --version
rustc 1.62.1 (e092d0b6b 2022-07-16)
```
```rust
rust-docstrings> cargo build
Downloaded bitflags v0.8.2
Downloaded quick-error v1.1.0
Downloaded getopts v0.2.14
Downloaded pulldown-cmark v0.0.14
Downloaded 4 crates (159.1 KB) in 2.03s
Compiling pulldown-cmark v0.0.14
Compiling bitflags v0.8.2
Compiling getopts v0.2.14
Compiling quick-error v1.1.0
error[E0503]: cannot use `state` because it was mutably borrowed
--> /home/jayvdb/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.14/src/lib.rs:1008:25
|
955 | let mut machine = |cont: &mut bool, (i, c): (usize, char)| {
| ---------------------------------------- borrow of `state` occurs here
...
959 | state = match (state, whitespace, limit) {
| ----- borrow occurs due to use of `state` in closure
...
1008 | while cont && match state { B | C => true, A => false } {
| ^^^^^ use of borrowed `state`
1009 | machine(&mut cont, (fake_i, ' '));
| ------- borrow later used here

For more information about this error, try `rustc --explain E0503`.
error: could not compile `getopts` due to previous error
warning: build failed, waiting for other jobs to finish...
```

Upgrading the deps will require code changes.

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reproducing `cargo build` with rustc 1.62.1 and inspect the dependency declarations responsible for `getopts` v0.2.14. Review the reported E0503 failure and the note that dependency upgrades require code changes; done means the project builds successfully with compatible dependencies.

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

評価

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

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

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