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

ttf-parser v0.20 fails to compile on Rust 1.76 #141

Closed
alice-i-cecile opened this issue Feb 8, 2024 · 2 comments
Closed

ttf-parser v0.20 fails to compile on Rust 1.76 #141

alice-i-cecile opened this issue Feb 8, 2024 · 2 comments

Comments

@alice-i-cecile
Copy link

Found in taffy's CI here: https://github.com/DioxusLabs/taffy/actions/runs/7830890088/job/21366000249

error[E0309]: the parameter type `Ext` may not live long enough
  --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/read-fonts-0.15.3/src/tables/layout.rs:84:9
   |
84 | /         left.into_iter()
85 | |             .flatten()
86 | |             .chain(right.into_iter().flatten())
   | |_______________________________________________^ ...so that the type `Ext` will meet its required lifetime bounds
   |
help: consider adding an explicit lifetime bound...
   |
44 | impl<'a, T: FontRead<'a>, Ext: ExtensionLookup<'a, T> + 'a> Subtables<'a, T, Ext> {
   |                                                       ++++

error[E0309]: the parameter type `T` may not live long enough
  --> /home/runner/.cargo/registry/src/github.com-1ecc[62](https://github.com/DioxusLabs/taffy/actions/runs/7830890088/job/21366000249#step:5:63)99db9ec823/read-fonts-0.15.3/src/tables/layout.rs:84:9
   |
84 | /         left.into_iter()
85 | |             .flatten()
86 | |             .chain(right.into_iter().flatten())
   | |_______________________________________________^ ...so that the type `T` will meet its required lifetime bounds
   |
help: consider adding an explicit lifetime bound...
   |
44 | impl<'a, T: FontRead<'a> + 'a, Ext: ExtensionLookup<'a, T>> Subtables<'a, T, Ext> {
@alice-i-cecile
Copy link
Author

Sorry, looks like it's actually in read-fonts. Misread the CI log.

@alice-i-cecile alice-i-cecile closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2024
@RazrFalcon
Copy link
Owner

No problem.

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

No branches or pull requests

2 participants