Skip to content

Fix elided-named-lifetimes#1542

Merged
Mark-Simulacrum merged 1 commit intorust-lang:masterfrom
ehuss:elided-named-lifetimes
Sep 8, 2024
Merged

Fix elided-named-lifetimes#1542
Mark-Simulacrum merged 1 commit intorust-lang:masterfrom
ehuss:elided-named-lifetimes

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Sep 6, 2024

Rust has recently started warning about the missing lifetime here (via rust-lang/rust#129207).

warning: elided lifetime has a name
   --> src/data.rs:154:31
    |
151 |     pub(crate) fn subteams_of<'a>(
    |                               -- lifetime `'a` declared here
...
154 |     ) -> impl Iterator<Item = &Team> + 'a {
    |                               ^ this elided lifetime gets resolved as `'a`
    |
    = note: `#[warn(elided_named_lifetimes)]` on by default

@Mark-Simulacrum Mark-Simulacrum merged commit 88e8817 into rust-lang:master Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants