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

cve-rs fails to build #48

Open
ThalliMega opened this issue Dec 9, 2024 · 0 comments
Open

cve-rs fails to build #48

ThalliMega opened this issue Dec 9, 2024 · 0 comments

Comments

@ThalliMega
Copy link

What happened

cve-rs fails to build.

How to reproduce

cargo install cve-rs

Log

    Updating crates.io index
  Downloaded cve-rs v0.6.0
  Downloaded 1 crate (74.8 KB) in 1.56s
  Installing cve-rs v0.6.0
    Updating crates.io index
   Compiling cve-rs v0.6.0
error: lifetime may not live long enough
  --> ~\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cve-rs-0.6.0\src\lifetime_expansion.rs:44:9
   |
43 | pub fn expand<'a, 'b, T>(x: &'a T) -> &'b T {
   |               --  -- lifetime `'b` defined here
   |               |
   |               lifetime `'a` defined here
44 |     let f: fn(_, &'a T) -> &'b T = lifetime_translator;
   |            ^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'b`
   |
   = help: consider adding the following bound: `'a: 'b`

error: lifetime may not live long enough
  --> ~\.cargo\registry\src\index.crates.io-6f17d22bba15001f\cve-rs-0.6.0\src\lifetime_expansion.rs:54:9
   |
53 | pub fn expand_mut<'a, 'b, T>(x: &'a mut T) -> &'b mut T {
   |                   --  -- lifetime `'b` defined here
   |                   |
   |                   lifetime `'a` defined here
54 |     let f: fn(_, &'a mut T) -> &'b mut T = lifetime_translator_mut;
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'b`
   |
   = help: consider adding the following bound: `'a: 'b`
   = note: requirement occurs because of a mutable reference to `T`
   = note: mutable references are invariant over their type parameter
   = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: could not compile `cve-rs` (lib) due to 2 previous errors
error: failed to compile `cve-rs v0.6.0`, intermediate artifacts can be found at `~\Temp\cargo-installzUjClR`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

path stripped

Some env info

OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.26100 N/A Build 26100
rustc 1.83.0 (90b35a623 2024-11-26)
cargo 1.83.0 (5ffbef321 2024-10-29)

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

1 participant