Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix implicit lifetime for Rust 1.78 #181

Merged
merged 2 commits into from
May 2, 2024
Merged

Fix implicit lifetime for Rust 1.78 #181

merged 2 commits into from
May 2, 2024

Conversation

sbihel
Copy link
Member

@sbihel sbihel commented May 2, 2024

No description provided.

@sbihel sbihel merged commit 44aaf86 into main May 2, 2024
2 checks passed
@sbihel sbihel deleted the fix-rust-1-78 branch May 2, 2024 15:28
@timothee-haudebourg
Copy link
Collaborator

For the record, what was the error exactly?

@sbihel
Copy link
Member Author

sbihel commented May 7, 2024

For the record, what was the error exactly?

error[E0309]: the parameter type `R` may not live long enough
   --> /Users/sbihel/.cargo/git/checkouts/treeldr-779b41ff6593b58b/9313354/layouts/src/matching.rs:110:32
    |
98  | impl<'a, 'p, R, D, Q> Iterator for Matching<'a, 'p, R, D, Q>
    |      -- the parameter type `R` must be valid for the lifetime `'a` as defined here...
...
110 |                     Some(quad_state) => match quad_state.quad_matching.next() {
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `R` will meet its required lifetime bounds
    |
help: consider adding an explicit lifetime bound
    |
100 |     R: Clone + PartialEq + 'a,
    |                          ++++

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.

3 participants