Skip to content

"build-script-build contains outdated or invalid JSON" #4855

@dtolnay

Description

@dtolnay

Something is going wrong with miri in nightly-2026-02-12.

# Cargo.toml

[package]
name = "repro"
edition = "2024"
publish = false
// build.rs

fn main() {}
// src/main.rs

fn main() {}
$ cargo clean && cargo +nightly-2026-02-12 miri run
   Compiling repro v0.0.0
error: failed to run custom build command for `repro v0.0.0`

Caused by:
  process didn't exit successfully: `$RUSTUP_HOME/toolchains/nightly-2026-02-12-x86_64-unknown-linux-gnu/bin/cargo-miri runner target/miri/debug/build/repro-e8018e58e4b6ef17/build-script-build` (exit status: 1)
  --- stderr
  fatal error: file "target/miri/debug/build/repro-e8018e58e4b6ef17/build-script-build" contains outdated or invalid JSON; try `cargo clean`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions