killercup / killercup/rust-docstrings

Fails to build

未关闭
#10 0 条评论 0 个 reaction 已指派 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 摘要。