Skip to content

Regression while building Deno 2.6.0 #149886

@Lucy-dot-dot

Description

@Lucy-dot-dot

Example

I tried this code:

cargo install deno --locked

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

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

No one assigned

    Labels

    C-bugCategory: This is a bug.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions