-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed as not planned
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Description
Example
I tried this code:
cargo install deno --lockedI 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
Version it worked on
It most recently worked on: 1.91.0
Version with regression
rustc --version --verbose:
rustc 1.92.0 (ded5c06cf 2025-12-08)
binary: rustc
commit-hash: ded5c06cf21d2b93bffd5d884aa6e96934ee4234
commit-date: 2025-12-08
host: x86_64-unknown-linux-gnu
release: 1.92.0
LLVM version: 21.1.3
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.