Skip to content

nightly regression (2022-11-22) on rstest #104759

Closed
@baloo

Description

@baloo

Sorry for the badly formatted bug report here, I'm not entirely sure how to report regression on a dependency as I don't have a minimal reproduction code.

$ cargo +nightly-2022-11-22 build 
   Compiling rstest v0.12.0
error: `fixtures::get<'_, impl Iterator<Item = &parse::Fixture>>::{opaque#1}<'_>` does not live long enough
  --> /home/.../.cargo/registry/src/github.com-1ecc6299db9ec823/rstest-0.12.0/src/render/mod.rs:64:13
   |
64 |             TestCaseRender::new(name, attrs, (resolver, &resolver_fixtures))
   |             ^^^^^^^^^^^^^^^^^^^

error: `fixtures::get<'_, impl Iterator<Item = &parse::Fixture>>::{opaque#1}<'_>` does not live long enough
  --> /home/.../.cargo/registry/src/github.com-1ecc6299db9ec823/rstest-0.12.0/src/render/mod.rs:64:13
   |
64 |             TestCaseRender::new(name, attrs, (resolver, &resolver_fixtures))
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

it works in nightly-2022-11-21:

$ cargo +nightly-2022-11-21 build
[...]
Finished dev [optimized + debuginfo] target(s) in 27.09s

(problem applies with rstest master version)

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions