You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen: installation success
Instead, this happened: a borrow checker error at the end of compilation in the deno crate
error[E0716]: temporary value dropped while borrowed
--> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deno-2.6.0/tools/pm/audit.rs:507:16
|
507 | &format!("@{}", target)
| -^^^^^^^^^^^^^^^^^^^^^-
| || |
| || temporary value is freed at the end of this statement
| |creates a temporary value which is freed while still in use
| borrow later used here
|
= note: consider using a `let` binding to create a longer lived value
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0716`.
error: could not compile `deno` (bin "deno") due to 1 previous error
in 1.91, this emitted the FCW warning: temporary lifetime will be shortened in Rust 1.92. I believe this is the intended breakage from #145838? (@dianne)
This is indeed intended breakage from #145838; it being accepted by the compiler was a bug in earlier Rust versions.
I'd recommend filing an issue with Deno instead, but looking at the Deno repository, it seems they only support building with a specific Rust toolchain version1; at the moment it's 1.90.02.
Activity
cyrgani commentedon Dec 11, 2025
reduction:
in 1.91, this emitted the FCW
warning: temporary lifetime will be shortened in Rust 1.92. I believe this is the intended breakage from #145838? (@dianne)dianne commentedon Dec 12, 2025
This is indeed intended breakage from #145838; it being accepted by the compiler was a bug in earlier Rust versions.
I'd recommend filing an issue with Deno instead, but looking at the Deno repository, it seems they only support building with a specific Rust toolchain version1; at the moment it's 1.90.02.
Footnotes
https://github.com/denoland/deno/blob/main/.github/CONTRIBUTING.md#rust ↩
https://github.com/denoland/deno/blob/e8a725f5e9d9237824e79e58984ead0ba534497d/rust-toolchain.toml ↩