killercup / killercup/rust-docstrings

Fails to build

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12
Forks
4
PR merge metrics
No merged PRs in 30d

Description

```
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.

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.