Skip to content

compile yoke v0.3.1 failed #1464

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

Closed
hellomsg opened this issue Dec 31, 2021 · 1 comment
Closed

compile yoke v0.3.1 failed #1464

hellomsg opened this issue Dec 31, 2021 · 1 comment
Labels
C-zerovec Component: Yoke, ZeroVec, DataBake

Comments

@hellomsg
Copy link

hellomsg commented Dec 31, 2021

   Compiling yoke v0.3.1
   Compiling serde_urlencoded v0.6.1
   Compiling icu_locid v0.4.0
   Compiling icu_calendar v0.4.0
error[E0310]: the parameter type `T` may not live long enough
   --> /.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/yoke-0.3.1/src/zero_copy_from.rs:245:5
    |
245 |     fn zero_copy_from<'b>(cart: &'b [T]) -> &'b [T] {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider adding an explicit lifetime bound `T: 'static`...
    = note: ...so that the type `[T]` will meet its required lifetime bounds

error: aborting due to previous error

For more information about this error, try `rustc --explain E0310`.
error: could not compile `yoke` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
Process finished with exit code 101

cargo 1.57.0 (b2e52d7ca 2021-10-21)

@hellomsg
Copy link
Author

hellomsg commented Jan 5, 2022

fixed in #1392

@hellomsg hellomsg closed this as completed Jan 5, 2022
@sffc sffc added the C-zerovec Component: Yoke, ZeroVec, DataBake label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-zerovec Component: Yoke, ZeroVec, DataBake
Projects
None yet
Development

No branches or pull requests

2 participants