ActivityWatch / ActivityWatch/aw-watcher-window-wayland
error[E0310]: the parameter type `T` may not live long enough
- Linguagem predominante
- Rust
- Estrelas
- 100
- Forks
- 21
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
i'm using hyprland in arch. but i'm getting this error.
```
error[E0310]: the parameter type `T` may not live long enough
--> /home/ingenarel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5
|
1155 | fn decode(d: &mut D) -> Result, D::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| the parameter type `T` must be valid for the static lifetime...
| ...so that the type `T` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> /usr/src/debug/rust/rustc-1.79.0-src/library/alloc/src/borrow.rs:180:30
help: consider adding an explicit lifetime bound
|
1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>
| +++++++++
For more information about this error, try `rustc --explain E0310`.
error: could not compile `rustc-serialize` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'aw-watcher-window-wayland-git-r33.6108ad3-1':
error: packages failed to build: aw-watcher-window-wayland-git-r33.6108ad3-1
```
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Reproduce the Arch build failure and read rustc-serialize-0.3.24/src/serialize.rs around lines 1151-1155, along with the output of `rustc --explain E0310`. Verify the aw-watcher-window-wayland-git package builds successfully without the E0310 error; the payload names no repository files or tests.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- rust
- Domínio
- build-system
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100