Skip to content

ashpd regression #174

Open
Open
@compiler-errors

Description

@compiler-errors

Not yet minimized

https://crater-reports.s3.amazonaws.com/pr-133502-1/try%23fa8e241660363f48d64b66b05eea58c93ab828fb/reg/rfd-0.15.3/log.txt

[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.11.0/src/proxy.rs:258:5
[INFO] [stdout]     |
[INFO] [stdout] 35  |   impl<'a> Proxy<'a> {
[INFO] [stdout]     |        -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 258 | /     pub(crate) async fn signal<I>(&self, name: &'static str) -> Result<impl Stream<Item = I>, Error>
[INFO] [stdout] 259 | |     where
[INFO] [stdout] 260 | |         I: for<'de> Deserialize<'de> + Type + Debug,
[INFO] [stdout]     | |____________________________________________________^ opaque type requires that `'a` must outlive `'static`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.11.0/src/proxy.rs:258:5
[INFO] [stdout]     |
[INFO] [stdout] 258 |       pub(crate) async fn signal<I>(&self, name: &'static str) -> Result<impl Stream<Item = I>, Error>
[INFO] [stdout]     |       ^                             - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |  _____|
[INFO] [stdout]     | |
[INFO] [stdout] 259 | |     where
[INFO] [stdout] 260 | |         I: for<'de> Deserialize<'de> + Type + Debug,
[INFO] [stdout]     | |____________________________________________________^ opaque type requires that `'1` must outlive `'static`
[INFO] [stdout]     |
[INFO] [stdout] help: to declare that `impl futures_util::Stream<Item = I>` captures data from argument `self`, you can add an explicit `'_` lifetime bound
[INFO] [stdout]     |
[INFO] [stdout] 258 |     pub(crate) async fn signal<I>(&self, name: &'static str) -> Result<impl Stream<Item = I> + '_, Error>
[INFO] [stdout]     |                                                                                              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] help: replace `'a` with `'static`

Metadata

Metadata

Assignees

Labels

from-craterA regression found via a crater run, not part of our test suite

Type

No type

Projects

Status

in progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions