killercup / killercup/rust-docstrings

Fails to build

Abierto
#10 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
12
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
build-system
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
28/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.