-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
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)
sang-sheltonAbuShawarib, sukhmel and demkom58BenjaminBrienen, Inspirateur, musjj, namecallfilter, Kobzol and 12 morebapho-bush and demkom58
Metadata
Metadata
Assignees
Labels
No labels