Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-miri swaps the values of enviroment variable set by build script #1661

Closed
ghost opened this issue Dec 30, 2020 · 17 comments · Fixed by #1684
Closed

cargo-miri swaps the values of enviroment variable set by build script #1661

ghost opened this issue Dec 30, 2020 · 17 comments · Fixed by #1684
Labels
A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug.

Comments

@ghost
Copy link

ghost commented Dec 30, 2020

This requires complex dependency tree to reproduce and happens with today's nightly:

set -e
cargo new --lib cargo-miri-bug --vcs none
cd cargo-miri-bug/
echo 'a-cool-macro = { path = "a-cool-macro" }
[lib]
doctest = false
[workspace]' >> Cargo.toml
cargo new --lib a-cool-macro --vcs none
cd a-cool-macro/
echo '[lib]
proc-macro = true
[dev-dependencies]
cargo-miri-bug = { path = ".." }' >> Cargo.toml
cd ..
echo 'fn main() { println!("cargo:rustc-env=CRATE_TARGET={}", std::env::var("TARGET").unwrap()) }' > build.rs
echo '#[test] fn target() { assert_eq!(env!("CRATE_TARGET"), "x86_64-pc-windows-gnu") }' > src/lib.rs
while cargo miri test --workspace --target x86_64-pc-windows-gnu -vv; do cargo clean; done

(Reminder: the top set -e will make your shell exit if any command fails, which is used to make sure errors from commands like cargo clean are not missed, so this can't be a cache issue or caused by other spurious reasons. Remember to set +e if you want to continue to use that shell like normal.)

This doesn't reproduce it reliably, so there's a while loop at the end.

The assertion sometimes fails (I'm on x86_64-unknown-linux-gnu):

---- target stdout ----
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"x86_64-unknown-linux-gnu"`,
 right: `"x86_64-pc-windows-gnu"`', src/lib.rs:1:23
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Complete output
   Compiling cargo-miri-bug v0.1.0 (/test-dir/cargo-miri-bug)
   Compiling a-cool-macro v0.1.0 (/test-dir/cargo-miri-bug/a-cool-macro)
     Running `CARGO=/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/test-dir/cargo-miri-bug CARGO_PKG_AUTHORS='hyd-dev <yd-huang@outlook.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-miri-bug CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/test-dir/cargo-miri-bug/target/debug/deps:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' /my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=96c6e85b1c2370b2 -C extra-filename=-96c6e85b1c2370b2 --out-dir /test-dir/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2 -C incremental=/test-dir/cargo-miri-bug/target/debug/incremental -L dependency=/test-dir/cargo-miri-bug/target/debug/deps`
     Running `CARGO=/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=a_cool_macro CARGO_MANIFEST_DIR=/test-dir/cargo-miri-bug/a-cool-macro CARGO_PKG_AUTHORS='hyd-dev <yd-huang@outlook.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=a-cool-macro CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/test-dir/cargo-miri-bug/target/debug/deps:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' /my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name a_cool_macro --edition=2018 a-cool-macro/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=e7ae0a081fe0234e -C extra-filename=-e7ae0a081fe0234e --out-dir /test-dir/cargo-miri-bug/target/debug/deps -C incremental=/test-dir/cargo-miri-bug/target/debug/incremental -L dependency=/test-dir/cargo-miri-bug/target/debug/deps --extern proc_macro`
     Running `/test-dir/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
     Running `/test-dir/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-unknown-linux-gnu
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-pc-windows-gnu
     Running `CARGO=/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=cargo_miri_bug CARGO_MANIFEST_DIR=/test-dir/cargo-miri-bug CARGO_PKG_AUTHORS='hyd-dev <yd-huang@outlook.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-miri-bug CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CRATE_TARGET=x86_64-pc-windows-gnu LD_LIBRARY_PATH='/test-dir/cargo-miri-bug/target/debug/deps:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' OUT_DIR=/test-dir/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/build/cargo-miri-bug-902ff261c70212db/out /my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name cargo_miri_bug --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=bf06f2061ec6b200 -C extra-filename=-bf06f2061ec6b200 --out-dir /test-dir/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps --target x86_64-pc-windows-gnu -C incremental=/test-dir/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/incremental -L dependency=/test-dir/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps -L dependency=/test-dir/cargo-miri-bug/target/debug/deps --extern a_cool_macro=/test-dir/cargo-miri-bug/target/debug/deps/liba_cool_macro-e7ae0a081fe0234e.so`
     Running `CARGO=/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=cargo_miri_bug CARGO_MANIFEST_DIR=/test-dir/cargo-miri-bug CARGO_PKG_AUTHORS='hyd-dev <yd-huang@outlook.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-miri-bug CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CRATE_TARGET=x86_64-unknown-linux-gnu LD_LIBRARY_PATH='/test-dir/cargo-miri-bug/target/debug/deps:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' OUT_DIR=/test-dir/cargo-miri-bug/target/debug/build/cargo-miri-bug-87bb56a7c6dece47/out /my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name cargo_miri_bug --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=eadce0378def115a -C extra-filename=-eadce0378def115a --out-dir /test-dir/cargo-miri-bug/target/debug/deps -C incremental=/test-dir/cargo-miri-bug/target/debug/incremental -L dependency=/test-dir/cargo-miri-bug/target/debug/deps --extern a_cool_macro=/test-dir/cargo-miri-bug/target/debug/deps/liba_cool_macro-e7ae0a081fe0234e.so`
     Running `CARGO=/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=a_cool_macro CARGO_MANIFEST_DIR=/test-dir/cargo-miri-bug/a-cool-macro CARGO_PKG_AUTHORS='hyd-dev <yd-huang@outlook.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=a-cool-macro CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/test-dir/cargo-miri-bug/target/debug/deps:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' /my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name a_cool_macro --edition=2018 a-cool-macro/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 --test -C metadata=c9cedba35727b268 -C extra-filename=-c9cedba35727b268 --out-dir /test-dir/cargo-miri-bug/target/debug/deps -C incremental=/test-dir/cargo-miri-bug/target/debug/incremental -L dependency=/test-dir/cargo-miri-bug/target/debug/deps --extern cargo_miri_bug=/test-dir/cargo-miri-bug/target/debug/deps/libcargo_miri_bug-eadce0378def115a.rlib --extern proc_macro`
    Finished test [unoptimized + debuginfo] target(s) in 0.80s
     Running `/test-dir/cargo-miri-bug/target/debug/deps/a_cool_macro-c9cedba35727b268`

running 1 test
test tests::it_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running `/my/home/directory/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri /test-dir/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps/cargo_miri_bug-bf06f2061ec6b200.exe`

running 1 test
test target ... FAILED

failures:

---- target stdout ----
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"x86_64-unknown-linux-gnu"`,
 right: `"x86_64-pc-windows-gnu"`', src/lib.rs:1:23
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
Complete output with CARGO_LOG=trace
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_ALIAS_MIRI", parts: [("alias", 5), ("miri", 11)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TERM", parts: [("term", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_NET", parts: [("net", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_UNSTABLE", parts: [("unstable", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_HTTP", parts: [("http", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_ALIAS_CHECK", parts: [("alias", 5), ("check", 11)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TERM", parts: [("term", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_NET", parts: [("net", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_UNSTABLE", parts: [("unstable", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_HTTP", parts: [("http", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_BUILD", parts: [("build", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::toml] read_manifest; path=/root/.cache/miri/Cargo.toml; source-id=/root/.cache/miri
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - trying /root/.cache/Cargo.toml
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - trying /root/Cargo.toml
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - trying /Cargo.toml
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_members - only me as a member
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TERM", parts: [("term", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] adding rustup info to rustc fingerprint
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] reusing existing rustc info cache
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] rustc info cache hit
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("runner", 37)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("rustflags", 37)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("linker", 37)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] rustc info cache hit
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("runner", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("rustflags", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("linker", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] rustc info cache hit
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTDOCFLAGS", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("rustdocflags", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET", parts: [("target", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::config::target] Got all targets {}
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_REGISTRY_INDEX", parts: [("registry", 5), ("index", 14)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_SOURCE", parts: [("source", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] avoid_patch_ids={}
[2020-12-30T17:00:10Z TRACE cargo::ops::resolve] previous: graph: Graph {
      - miri-xargo v0.0.0 (/root/.cache/miri)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::core::registry] clear_lock
[2020-12-30T17:00:10Z TRACE cargo::core::registry] register_lock: miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] attempting to prefer miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/missing  /root/.cache/miri
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] loading source /root/.cache/miri
[2020-12-30T17:00:10Z DEBUG cargo::sources::config] loading: /root/.cache/miri
[2020-12-30T17:00:10Z TRACE cargo::core::source::source_id] loading SourceId; /root/.cache/miri
[2020-12-30T17:00:10Z TRACE cargo::ops::cargo_read_manifest] read_package; path=/root/.cache/miri/Cargo.toml; source-id=/root/.cache/miri
[2020-12-30T17:00:10Z TRACE cargo::util::toml] read_manifest; path=/root/.cache/miri/Cargo.toml; source-id=/root/.cache/miri
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver] initial activation: miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] activating miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] resolved: graph: Graph {
      - miri-xargo v0.0.0 (/root/.cache/miri)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PATHS", parts: [("paths", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] avoid_patch_ids={}
[2020-12-30T17:00:10Z TRACE cargo::ops::resolve] previous: graph: Graph {
      - miri-xargo v0.0.0 (/root/.cache/miri)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::core::registry] clear_lock
[2020-12-30T17:00:10Z TRACE cargo::core::registry] register_lock: miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] attempting to prefer miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/locked   /root/.cache/miri
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver] initial activation: miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] activating miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] resolved: graph: Graph {
      - miri-xargo v0.0.0 (/root/.cache/miri)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::core::registry] getting packages; sources=1
[2020-12-30T17:00:10Z TRACE cargo::sources::path] getting packages; id=miri-xargo v0.0.0 (/root/.cache/miri)
[2020-12-30T17:00:10Z DEBUG cargo::core::package] miri-xargo v0.0.0 (/root/.cache/miri) doesn't need a download
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_DEV", parts: [("profile", 5), ("dev", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_RELEASE", parts: [("profile", 5), ("release", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_BENCH", parts: [("profile", 5), ("bench", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_TEST", parts: [("profile", 5), ("test", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::core::compiler::unit_dependencies] ALL UNIT DEPENDENCIES {
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "miri-xargo",
                    version: "0.0.0",
                    source: "/root/.cache/miri",
                },
                ..: "..",
            },
            target: TargetInner {
                ..: lib_target("miri-xargo", ["lib"], "/root/.cache/miri/lib.rs", Edition2015),
            },
            profile: Profile {
                ..: default_dev(),
            },
            kind: Target(
                CompileTarget {
                    name: "x86_64-pc-windows-gnu",
                },
            ),
            mode: Check {
                test: false,
            },
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [],
    }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("runner", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("runner", 37)] }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::context::compilation_files] Target filenames: [OutputFile { path: "/root/.cache/miri/target/x86_64-pc-windows-gnu/debug/deps/libmiri_xargo-baef4d804903464e.rmeta", hardlink: None, export_path: None, flavor: Rmeta }]
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /root/.cache/miri/target/x86_64-pc-windows-gnu/debug/.fingerprint/miri-xargo-baef4d804903464e/lib-miri-xargo
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] max output mtime for "/root/.cache/miri" is "/root/.cache/miri/target/x86_64-pc-windows-gnu/debug/deps/libmiri_xargo-baef4d804903464e.rmeta" 1609347607.533576985s
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] stale: changed "/root/.cache/miri/lib.rs"
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]           (vs) "/root/.cache/miri/target/x86_64-pc-windows-gnu/debug/.fingerprint/miri-xargo-baef4d804903464e/dep-lib-miri-xargo"
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]                FileTime { seconds: 1609347607, nanos: 497576020 } != FileTime { seconds: 1609347610, nanos: 489656210 }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for miri-xargo v0.0.0 (/root/.cache/miri)/Check { test: false }/TargetInner { ..: lib_target("miri-xargo", ["lib"], "/root/.cache/miri/lib.rs", Edition2015) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: current filesystem status shows we're outdated
[2020-12-30T17:00:10Z TRACE cargo::core::compiler::job_queue] queue: DependencyQueue {
        dep_map: {
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "miri-xargo",
                        version: "0.0.0",
                        source: "/root/.cache/miri",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: lib_target("miri-xargo", ["lib"], "/root/.cache/miri/lib.rs", Edition2015),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: Check {
                    test: false,
                },
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {},
                Job { ... },
            ),
        },
        reverse_dep_map: {},
        priority: {
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "miri-xargo",
                        version: "0.0.0",
                        source: "/root/.cache/miri",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: lib_target("miri-xargo", ["lib"], "/root/.cache/miri/lib.rs", Edition2015),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: Check {
                    test: false,
                },
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 200,
        },
        cost: {
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "miri-xargo",
                        version: "0.0.0",
                        source: "/root/.cache/miri",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: lib_target("miri-xargo", ["lib"], "/root/.cache/miri/lib.rs", Edition2015),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: Check {
                    test: false,
                },
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
        },
    }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] start 0: Unit { pkg: Package { id: PackageId { name: "miri-xargo", version: "0.0.0", source: "/root/.cache/miri" }, ..: ".." }, target: TargetInner { ..: lib_target("miri-xargo", ["lib"], "/root/.cache/miri/lib.rs", Edition2015) }, profile: Profile { ..: default_dev() }, kind: Target(CompileTarget { name: "x86_64-pc-windows-gnu" }), mode: Check { test: false }, features: [], is_std: false, dep_hash: 0 }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] tokens in use: 0, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] tokens in use: 0, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:10Z DEBUG cargo::util::paths] invocation time for "/root/.cache/miri/target/x86_64-pc-windows-gnu/debug/.fingerprint/miri-xargo-baef4d804903464e" is 1609347610.613659533s
[2020-12-30T17:00:10Z DEBUG cargo::util::paths] set file mtime /root/.cache/miri/target/x86_64-pc-windows-gnu/debug/.fingerprint/miri-xargo-baef4d804903464e/dep-lib-miri-xargo to 1609347610.613659533s
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (6f8f38ebc7b81940) : /root/.cache/miri/target/x86_64-pc-windows-gnu/debug/.fingerprint/miri-xargo-baef4d804903464e/lib-miri-xargo
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] end: JobId(0)
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "miri-xargo", version: "0.0.0", source: "/root/.cache/miri" }, ..: ".." }, target: TargetInner { ..: lib_target("miri-xargo", ["lib"], "/root/.cache/miri/lib.rs", Edition2015) }, profile: Profile { ..: default_dev() }, kind: Target(CompileTarget { name: "x86_64-pc-windows-gnu" }), mode: Check { test: false }, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_ALIAS_TEST", parts: [("alias", 5), ("test", 11)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TERM", parts: [("term", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_NET", parts: [("net", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_UNSTABLE", parts: [("unstable", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_HTTP", parts: [("http", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_BUILD", parts: [("build", 5)] }
[2020-12-30T17:00:10Z TRACE cargo::util::toml] read_manifest; path=/cargo-miri-bug/Cargo.toml; source-id=/cargo-miri-bug
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - is root /cargo-miri-bug/Cargo.toml
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_members - /cargo-miri-bug/Cargo.toml
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_members - /cargo-miri-bug/a-cool-macro/Cargo.toml
[2020-12-30T17:00:10Z TRACE cargo::util::toml] read_manifest; path=/cargo-miri-bug/a-cool-macro/Cargo.toml; source-id=/cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - is root /cargo-miri-bug/Cargo.toml
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - trying /cargo-miri-bug/Cargo.toml
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - found a root checking exclusion
[2020-12-30T17:00:10Z DEBUG cargo::core::workspace] find_root - found!
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TERM", parts: [("term", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] adding rustup info to rustc fingerprint
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] failed to read rustc info cache: failed to read `/cargo-miri-bug/target/.rustc_info.json`
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] rustc info cache miss
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] running `rustc -vV`
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("runner", 37)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("rustflags", 37)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("linker", 37)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] rustc info cache miss
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] running `/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg`
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("runner", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("runner", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("rustflags", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("linker", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("rustflags", 34)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] rustc info cache miss
[2020-12-30T17:00:10Z DEBUG cargo::util::rustc] running `/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc - --crate-name ___ --print=file-names --target x86_64-pc-windows-gnu --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg`
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("rustflags", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET", parts: [("target", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::util::config::target] Got all targets {}
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTDOCFLAGS", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("rustdocflags", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_REGISTRY_INDEX", parts: [("registry", 5), ("index", 14)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_SOURCE", parts: [("source", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] avoid_patch_ids={}
[2020-12-30T17:00:10Z TRACE cargo::ops::resolve] previous: graph: Graph {
      - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
        - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
      - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
        - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::core::registry] clear_lock
[2020-12-30T17:00:10Z TRACE cargo::core::registry] register_lock: a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	-> cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] register_lock: cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	-> a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] attempting to prefer a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] attempting to prefer cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/missing  /cargo-miri-bug
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] loading source /cargo-miri-bug
[2020-12-30T17:00:10Z DEBUG cargo::sources::config] loading: /cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::core::source::source_id] loading SourceId; /cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::ops::cargo_read_manifest] read_package; path=/cargo-miri-bug/Cargo.toml; source-id=/cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::util::toml] read_manifest; path=/cargo-miri-bug/Cargo.toml; source-id=/cargo-miri-bug
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/missing  /cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] loading source /cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z DEBUG cargo::sources::config] loading: /cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::source::source_id] loading SourceId; /cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::ops::cargo_read_manifest] read_package; path=/cargo-miri-bug/a-cool-macro/Cargo.toml; source-id=/cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::util::toml] read_manifest; path=/cargo-miri-bug/a-cool-macro/Cargo.toml; source-id=/cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	a-cool-macro/*//cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `a-cool-macro` with `*` at /cargo-miri-bug/a-cool-macro to a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	cargo-miri-bug/*//cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `cargo-miri-bug` with `*` at /cargo-miri-bug to cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver] initial activation: cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] activating cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/locked   /cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	cargo-miri-bug/*//cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `cargo-miri-bug` with `*` at /cargo-miri-bug to cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver] initial activation: a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] activating a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/locked   /cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	a-cool-macro/*//cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `a-cool-macro` with `*` at /cargo-miri-bug/a-cool-macro to a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] cargo-miri-bug[2]>a-cool-macro 1 candidates
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] cargo-miri-bug[2]>a-cool-macro trying 0.1.0
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver::context] checking if a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro) is already activated
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] a-cool-macro[3]>cargo-miri-bug 1 candidates
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] a-cool-macro[3]>cargo-miri-bug trying 0.1.0
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver::context] checking if cargo-miri-bug v0.1.0 (/cargo-miri-bug) is already activated
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] resolved: graph: Graph {
      - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
        - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
      - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
        - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PATHS", parts: [("paths", 5)] }
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] avoid_patch_ids={}
[2020-12-30T17:00:10Z TRACE cargo::ops::resolve] previous: graph: Graph {
      - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
        - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
      - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
        - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::core::registry] clear_lock
[2020-12-30T17:00:10Z TRACE cargo::core::registry] register_lock: a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	-> cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] register_lock: cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	-> a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] attempting to prefer a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z DEBUG cargo::ops::resolve] attempting to prefer cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/locked   /cargo-miri-bug
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/locked   /cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	a-cool-macro/*//cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `a-cool-macro` with `*` at /cargo-miri-bug/a-cool-macro to a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	cargo-miri-bug/*//cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `cargo-miri-bug` with `*` at /cargo-miri-bug to cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver] initial activation: cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] activating cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/locked   /cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	cargo-miri-bug/*//cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `cargo-miri-bug` with `*` at /cargo-miri-bug to cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver] initial activation: a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] activating a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z DEBUG cargo::core::registry] load/locked   /cargo-miri-bug
[2020-12-30T17:00:10Z TRACE cargo::core::registry] locking summary of cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	a-cool-macro/*//cargo-miri-bug/a-cool-macro
[2020-12-30T17:00:10Z TRACE cargo::core::registry] 	first hit on a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::dependency] locking dep from `a-cool-macro` with `*` at /cargo-miri-bug/a-cool-macro to a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] cargo-miri-bug[2]>a-cool-macro 1 candidates
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] cargo-miri-bug[2]>a-cool-macro trying 0.1.0
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver::context] checking if a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro) is already activated
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] a-cool-macro[3]>cargo-miri-bug 1 candidates
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] a-cool-macro[3]>cargo-miri-bug trying 0.1.0
[2020-12-30T17:00:10Z DEBUG cargo::core::resolver::context] checking if cargo-miri-bug v0.1.0 (/cargo-miri-bug) is already activated
[2020-12-30T17:00:10Z TRACE cargo::core::resolver] resolved: graph: Graph {
      - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
        - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
      - cargo-miri-bug v0.1.0 (/cargo-miri-bug)
        - a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
    }

    features: {
    }
[2020-12-30T17:00:10Z TRACE cargo::core::registry] getting packages; sources=2
[2020-12-30T17:00:10Z TRACE cargo::sources::path] getting packages; id=a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z DEBUG cargo::core::package] a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro) doesn't need a download
[2020-12-30T17:00:10Z TRACE cargo::sources::path] getting packages; id=cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z DEBUG cargo::core::package] cargo-miri-bug v0.1.0 (/cargo-miri-bug) doesn't need a download
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_RELEASE", parts: [("profile", 5), ("release", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_TEST", parts: [("profile", 5), ("test", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_BENCH", parts: [("profile", 5), ("bench", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_PROFILE_DEV", parts: [("profile", 5), ("dev", 13)] }
[2020-12-30T17:00:10Z TRACE cargo::core::compiler::unit_dependencies] ALL UNIT DEPENDENCIES {
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "cargo-miri-bug",
                    version: "0.1.0",
                    source: "/cargo-miri-bug",
                },
                ..: "..",
            },
            target: TargetInner {
                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
            },
            profile: Profile {
                ..: default_dev(),
            },
            kind: Host,
            mode: Build,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [],
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "a-cool-macro",
                    version: "0.1.0",
                    source: "/cargo-miri-bug/a-cool-macro",
                },
                ..: "..",
            },
            target: TargetInner {
                for_host: true,
                proc_macro: true,
                ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
            },
            profile: Profile {
                name: "test",
                debuginfo: Some(
                    2,
                ),
                debug_assertions: true,
                overflow_checks: true,
                incremental: true,
                ..: default(),
            },
            kind: Host,
            mode: Test,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "cargo-miri-bug",
                            version: "0.1.0",
                            source: "/cargo-miri-bug",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        doctest: false,
                        ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                    },
                    profile: Profile {
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: Build,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: true,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "cargo_miri_bug",
                public: false,
                noprelude: false,
            },
        ],
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "cargo-miri-bug",
                    version: "0.1.0",
                    source: "/cargo-miri-bug",
                },
                ..: "..",
            },
            target: TargetInner {
                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
            },
            profile: Profile {
                name: "test",
                debuginfo: Some(
                    2,
                ),
                ..: default(),
            },
            kind: Target(
                CompileTarget {
                    name: "x86_64-pc-windows-gnu",
                },
            ),
            mode: RunCustomBuild,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "cargo-miri-bug",
                            version: "0.1.0",
                            source: "/cargo-miri-bug",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                    },
                    profile: Profile {
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: Build,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: false,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "build_script_build",
                public: false,
                noprelude: false,
            },
        ],
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "cargo-miri-bug",
                    version: "0.1.0",
                    source: "/cargo-miri-bug",
                },
                ..: "..",
            },
            target: TargetInner {
                doctest: false,
                ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
            },
            profile: Profile {
                ..: default_dev(),
            },
            kind: Host,
            mode: Build,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "a-cool-macro",
                            version: "0.1.0",
                            source: "/cargo-miri-bug/a-cool-macro",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        for_host: true,
                        proc_macro: true,
                        ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                    },
                    profile: Profile {
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: Build,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: true,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "a_cool_macro",
                public: false,
                noprelude: false,
            },
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "cargo-miri-bug",
                            version: "0.1.0",
                            source: "/cargo-miri-bug",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                    },
                    profile: Profile {
                        debug_assertions: false,
                        overflow_checks: false,
                        incremental: false,
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: RunCustomBuild,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: true,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "build_script_build",
                public: false,
                noprelude: false,
            },
        ],
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "a-cool-macro",
                    version: "0.1.0",
                    source: "/cargo-miri-bug/a-cool-macro",
                },
                ..: "..",
            },
            target: TargetInner {
                for_host: true,
                proc_macro: true,
                ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
            },
            profile: Profile {
                name: "test",
                debuginfo: Some(
                    2,
                ),
                debug_assertions: true,
                overflow_checks: true,
                incremental: true,
                ..: default(),
            },
            kind: Host,
            mode: Doctest,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "a-cool-macro",
                            version: "0.1.0",
                            source: "/cargo-miri-bug/a-cool-macro",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        for_host: true,
                        proc_macro: true,
                        ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                    },
                    profile: Profile {
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: Build,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: true,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "a_cool_macro",
                public: false,
                noprelude: false,
            },
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "cargo-miri-bug",
                            version: "0.1.0",
                            source: "/cargo-miri-bug",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        doctest: false,
                        ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                    },
                    profile: Profile {
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: Build,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: true,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "cargo_miri_bug",
                public: false,
                noprelude: false,
            },
        ],
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "a-cool-macro",
                    version: "0.1.0",
                    source: "/cargo-miri-bug/a-cool-macro",
                },
                ..: "..",
            },
            target: TargetInner {
                for_host: true,
                proc_macro: true,
                ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
            },
            profile: Profile {
                ..: default_dev(),
            },
            kind: Host,
            mode: Build,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [],
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "cargo-miri-bug",
                    version: "0.1.0",
                    source: "/cargo-miri-bug",
                },
                ..: "..",
            },
            target: TargetInner {
                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
            },
            profile: Profile {
                debug_assertions: false,
                overflow_checks: false,
                incremental: false,
                ..: default_dev(),
            },
            kind: Host,
            mode: RunCustomBuild,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "cargo-miri-bug",
                            version: "0.1.0",
                            source: "/cargo-miri-bug",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                    },
                    profile: Profile {
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: Build,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: true,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "build_script_build",
                public: false,
                noprelude: false,
            },
        ],
        Unit {
            pkg: Package {
                id: PackageId {
                    name: "cargo-miri-bug",
                    version: "0.1.0",
                    source: "/cargo-miri-bug",
                },
                ..: "..",
            },
            target: TargetInner {
                doctest: false,
                ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
            },
            profile: Profile {
                name: "test",
                debuginfo: Some(
                    2,
                ),
                debug_assertions: true,
                overflow_checks: true,
                incremental: true,
                ..: default(),
            },
            kind: Target(
                CompileTarget {
                    name: "x86_64-pc-windows-gnu",
                },
            ),
            mode: Test,
            features: [],
            is_std: false,
            dep_hash: 0,
        }: [
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "a-cool-macro",
                            version: "0.1.0",
                            source: "/cargo-miri-bug/a-cool-macro",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        for_host: true,
                        proc_macro: true,
                        ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                    },
                    profile: Profile {
                        ..: default_dev(),
                    },
                    kind: Host,
                    mode: Build,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: true,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "a_cool_macro",
                public: false,
                noprelude: false,
            },
            UnitDep {
                unit: Unit {
                    pkg: Package {
                        id: PackageId {
                            name: "cargo-miri-bug",
                            version: "0.1.0",
                            source: "/cargo-miri-bug",
                        },
                        ..: "..",
                    },
                    target: TargetInner {
                        ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                    },
                    profile: Profile {
                        name: "test",
                        debuginfo: Some(
                            2,
                        ),
                        ..: default(),
                    },
                    kind: Target(
                        CompileTarget {
                            name: "x86_64-pc-windows-gnu",
                        },
                    ),
                    mode: RunCustomBuild,
                    features: [],
                    is_std: false,
                    dep_hash: 0,
                },
                unit_for: UnitFor {
                    host: true,
                    host_features: false,
                    panic_setting: AlwaysUnwind,
                },
                extern_crate_name: "build_script_build",
                public: false,
                noprelude: false,
            },
        ],
    }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER", parts: [("target", 5), ("x86_64-pc-windows-gnu", 12), ("runner", 34)] }
[2020-12-30T17:00:10Z TRACE cargo::util::config] get cv ConfigKey { env: "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER", parts: [("target", 5), ("x86_64-unknown-linux-gnu", 12), ("runner", 37)] }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::context::compilation_files] Target filenames: [OutputFile { path: "/cargo-miri-bug/target/debug/deps/liba_cool_macro-e7ae0a081fe0234e.so", hardlink: None, export_path: None, flavor: Linkable }]
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::context::compilation_files] Target filenames: [OutputFile { path: "/cargo-miri-bug/target/debug/deps/a_cool_macro-c9cedba35727b268", hardlink: None, export_path: None, flavor: Normal }]
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::context::compilation_files] Target filenames: []
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::context::compilation_files] Target filenames: [OutputFile { path: "/cargo-miri-bug/target/debug/deps/libcargo_miri_bug-eadce0378def115a.rlib", hardlink: None, export_path: None, flavor: Linkable }, OutputFile { path: "/cargo-miri-bug/target/debug/deps/libcargo_miri_bug-eadce0378def115a.rmeta", hardlink: None, export_path: None, flavor: Rmeta }]
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::context::compilation_files] Target filenames: [OutputFile { path: "/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps/cargo_miri_bug-bf06f2061ec6b200.exe", hardlink: None, export_path: None, flavor: Normal }]
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::context::compilation_files] Target filenames: [OutputFile { path: "/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build_script_build-96c6e85b1c2370b2", hardlink: Some("/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build"), export_path: None, flavor: Normal }]
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/.fingerprint/cargo-miri-bug-bf06f2061ec6b200/test-lib-cargo-miri-bug
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/cargo-miri-bug/target/debug/deps/liba_cool_macro-e7ae0a081fe0234e.so": failed to stat `/cargo-miri-bug/target/debug/deps/liba_cool_macro-e7ae0a081fe0234e.so`
[2020-12-30T17:00:10Z DEBUG cargo::sources::path] could not discover git repo at or above /cargo-miri-bug: could not find repository from '/cargo-miri-bug'; class=Repository (6); code=NotFound (-3)
[2020-12-30T17:00:10Z DEBUG globset] glob converted to regex: Glob { glob: "**/.*", re: "(?-u)^(?:/?|.*/)\\.[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('.'), ZeroOrMore]) }
[2020-12-30T17:00:10Z DEBUG globset] built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 1 regexes
[2020-12-30T17:00:10Z TRACE cargo::sources::path] last modified file /cargo-miri-bug: 1609347276.992594788s
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps "/cargo-miri-bug" precalculated="1609347276.992594788s (build.rs)"
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build_script_build-96c6e85b1c2370b2": failed to stat `/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build_script_build-96c6e85b1c2370b2`
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/build/cargo-miri-bug-902ff261c70212db/output": failed to stat `/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/build/cargo-miri-bug-902ff261c70212db/output`
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps/cargo_miri_bug-bf06f2061ec6b200.exe": failed to stat `/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps/cargo_miri_bug-bf06f2061ec6b200.exe`
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for cargo-miri-bug v0.1.0 (/cargo-miri-bug)/Test/TargetInner { doctest: false, ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: failed to read `/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/.fingerprint/cargo-miri-bug-bf06f2061ec6b200/test-lib-cargo-miri-bug`

    Caused by:
        No such file or directory (os error 2)
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-e7ae0a081fe0234e/lib-a-cool-macro
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)/Build/TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: failed to read `/cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-e7ae0a081fe0234e/lib-a-cool-macro`

    Caused by:
        No such file or directory (os error 2)
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/.fingerprint/cargo-miri-bug-902ff261c70212db/run-build-script-build-script-build
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for cargo-miri-bug v0.1.0 (/cargo-miri-bug)/RunCustomBuild/TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: failed to read `/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/.fingerprint/cargo-miri-bug-902ff261c70212db/run-build-script-build-script-build`

    Caused by:
        No such file or directory (os error 2)
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-96c6e85b1c2370b2/build-script-build-script-build
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for cargo-miri-bug v0.1.0 (/cargo-miri-bug)/Build/TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: failed to read `/cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-96c6e85b1c2370b2/build-script-build-script-build`

    Caused by:
        No such file or directory (os error 2)
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-eadce0378def115a/lib-cargo-miri-bug
[2020-12-30T17:00:10Z DEBUG cargo::sources::path] could not discover git repo at or above /cargo-miri-bug: could not find repository from '/cargo-miri-bug'; class=Repository (6); code=NotFound (-3)
[2020-12-30T17:00:10Z DEBUG globset] glob converted to regex: Glob { glob: "**/.*", re: "(?-u)^(?:/?|.*/)\\.[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, Literal('.'), ZeroOrMore]) }
[2020-12-30T17:00:10Z DEBUG globset] built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 1 regexes
[2020-12-30T17:00:10Z TRACE cargo::sources::path] last modified file /cargo-miri-bug: 1609347276.992594788s
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps "/cargo-miri-bug" precalculated="1609347276.992594788s (build.rs)"
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/cargo-miri-bug/target/debug/build/cargo-miri-bug-87bb56a7c6dece47/output": failed to stat `/cargo-miri-bug/target/debug/build/cargo-miri-bug-87bb56a7c6dece47/output`
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/cargo-miri-bug/target/debug/deps/libcargo_miri_bug-eadce0378def115a.rlib": failed to stat `/cargo-miri-bug/target/debug/deps/libcargo_miri_bug-eadce0378def115a.rlib`
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for cargo-miri-bug v0.1.0 (/cargo-miri-bug)/Build/TargetInner { doctest: false, ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: failed to read `/cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-eadce0378def115a/lib-cargo-miri-bug`

    Caused by:
        No such file or directory (os error 2)
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-87bb56a7c6dece47/run-build-script-build-script-build
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for cargo-miri-bug v0.1.0 (/cargo-miri-bug)/RunCustomBuild/TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: failed to read `/cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-87bb56a7c6dece47/run-build-script-build-script-build`

    Caused by:
        No such file or directory (os error 2)
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-c9cedba35727b268/test-lib-a-cool-macro
[2020-12-30T17:00:10Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/cargo-miri-bug/target/debug/deps/a_cool_macro-c9cedba35727b268": failed to stat `/cargo-miri-bug/target/debug/deps/a_cool_macro-c9cedba35727b268`
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint] fingerprint error for a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)/Test/TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::fingerprint]     err: failed to read `/cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-c9cedba35727b268/test-lib-a-cool-macro`

    Caused by:
        No such file or directory (os error 2)
[2020-12-30T17:00:10Z TRACE cargo::core::compiler::job_queue] queue: DependencyQueue {
        dep_map: {
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Host,
                mode: Test,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "a-cool-macro",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug/a-cool-macro",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                for_host: true,
                                proc_macro: true,
                                ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                debug_assertions: false,
                                overflow_checks: false,
                                incremental: false,
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: RunCustomBuild,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                doctest: false,
                                ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                },
                Job { ... },
            ),
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {},
                Job { ... },
            ),
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Host,
                mode: Doctest,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "a-cool-macro",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug/a-cool-macro",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                for_host: true,
                                proc_macro: true,
                                ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                debug_assertions: false,
                                overflow_checks: false,
                                incremental: false,
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: RunCustomBuild,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                doctest: false,
                                ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                },
                Job { ... },
            ),
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    doctest: false,
                    ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: Test,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "a-cool-macro",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug/a-cool-macro",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                for_host: true,
                                proc_macro: true,
                                ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                name: "test",
                                debuginfo: Some(
                                    2,
                                ),
                                ..: default(),
                            },
                            kind: Target(
                                CompileTarget {
                                    name: "x86_64-pc-windows-gnu",
                                },
                            ),
                            mode: RunCustomBuild,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                },
                Job { ... },
            ),
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    doctest: false,
                    ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                debug_assertions: false,
                                overflow_checks: false,
                                incremental: false,
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: RunCustomBuild,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "a-cool-macro",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug/a-cool-macro",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                for_host: true,
                                proc_macro: true,
                                ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                },
                Job { ... },
            ),
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    ..: default(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                },
                Job { ... },
            ),
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {},
                Job { ... },
            ),
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    debug_assertions: false,
                    overflow_checks: false,
                    incremental: false,
                    ..: default_dev(),
                },
                kind: Host,
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: (
                {
                    (
                        Unit {
                            pkg: Package {
                                id: PackageId {
                                    name: "cargo-miri-bug",
                                    version: "0.1.0",
                                    source: "/cargo-miri-bug",
                                },
                                ..: "..",
                            },
                            target: TargetInner {
                                ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                            },
                            profile: Profile {
                                ..: default_dev(),
                            },
                            kind: Host,
                            mode: Build,
                            features: [],
                            is_std: false,
                            dep_hash: 0,
                        },
                        All,
                    ),
                },
                Job { ... },
            ),
        },
        reverse_dep_map: {
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: {
                All: {
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "cargo-miri-bug",
                                version: "0.1.0",
                                source: "/cargo-miri-bug",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            doctest: false,
                            ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Target(
                            CompileTarget {
                                name: "x86_64-pc-windows-gnu",
                            },
                        ),
                        mode: Test,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "cargo-miri-bug",
                                version: "0.1.0",
                                source: "/cargo-miri-bug",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            ..: default(),
                        },
                        kind: Target(
                            CompileTarget {
                                name: "x86_64-pc-windows-gnu",
                            },
                        ),
                        mode: RunCustomBuild,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Doctest,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "cargo-miri-bug",
                                version: "0.1.0",
                                source: "/cargo-miri-bug",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                        },
                        profile: Profile {
                            debug_assertions: false,
                            overflow_checks: false,
                            incremental: false,
                            ..: default_dev(),
                        },
                        kind: Host,
                        mode: RunCustomBuild,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Test,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                },
            },
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    debug_assertions: false,
                    overflow_checks: false,
                    incremental: false,
                    ..: default_dev(),
                },
                kind: Host,
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: {
                All: {
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Test,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Doctest,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "cargo-miri-bug",
                                version: "0.1.0",
                                source: "/cargo-miri-bug",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            doctest: false,
                            ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            ..: default_dev(),
                        },
                        kind: Host,
                        mode: Build,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                },
            },
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    doctest: false,
                    ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: {
                All: {
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Doctest,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Test,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                },
            },
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: {
                All: {
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Doctest,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "cargo-miri-bug",
                                version: "0.1.0",
                                source: "/cargo-miri-bug",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            doctest: false,
                            ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            ..: default_dev(),
                        },
                        kind: Host,
                        mode: Build,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "a-cool-macro",
                                version: "0.1.0",
                                source: "/cargo-miri-bug/a-cool-macro",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            for_host: true,
                            proc_macro: true,
                            ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Host,
                        mode: Test,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "cargo-miri-bug",
                                version: "0.1.0",
                                source: "/cargo-miri-bug",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            doctest: false,
                            ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Target(
                            CompileTarget {
                                name: "x86_64-pc-windows-gnu",
                            },
                        ),
                        mode: Test,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                },
            },
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    ..: default(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: {
                All: {
                    Unit {
                        pkg: Package {
                            id: PackageId {
                                name: "cargo-miri-bug",
                                version: "0.1.0",
                                source: "/cargo-miri-bug",
                            },
                            ..: "..",
                        },
                        target: TargetInner {
                            doctest: false,
                            ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                        },
                        profile: Profile {
                            name: "test",
                            debuginfo: Some(
                                2,
                            ),
                            debug_assertions: true,
                            overflow_checks: true,
                            incremental: true,
                            ..: default(),
                        },
                        kind: Target(
                            CompileTarget {
                                name: "x86_64-pc-windows-gnu",
                            },
                        ),
                        mode: Test,
                        features: [],
                        is_std: false,
                        dep_hash: 0,
                    },
                },
            },
        },
        priority: {
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    doctest: false,
                    ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: Test,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 200,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Host,
                mode: Doctest,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 200,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    debug_assertions: false,
                    overflow_checks: false,
                    incremental: false,
                    ..: default_dev(),
                },
                kind: Host,
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 500,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    doctest: false,
                    ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 400,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    ..: default(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 300,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Host,
                mode: Test,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 200,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 600,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 800,
        },
        cost: {
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    doctest: false,
                    ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: Test,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    doctest: false,
                    ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    debug_assertions: false,
                    overflow_checks: false,
                    incremental: false,
                    ..: default_dev(),
                },
                kind: Host,
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    ..: default_dev(),
                },
                kind: Host,
                mode: Build,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Host,
                mode: Test,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "cargo-miri-bug",
                        version: "0.1.0",
                        source: "/cargo-miri-bug",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    ..: default(),
                },
                kind: Target(
                    CompileTarget {
                        name: "x86_64-pc-windows-gnu",
                    },
                ),
                mode: RunCustomBuild,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
            Unit {
                pkg: Package {
                    id: PackageId {
                        name: "a-cool-macro",
                        version: "0.1.0",
                        source: "/cargo-miri-bug/a-cool-macro",
                    },
                    ..: "..",
                },
                target: TargetInner {
                    for_host: true,
                    proc_macro: true,
                    ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018),
                },
                profile: Profile {
                    name: "test",
                    debuginfo: Some(
                        2,
                    ),
                    debug_assertions: true,
                    overflow_checks: true,
                    incremental: true,
                    ..: default(),
                },
                kind: Host,
                mode: Doctest,
                features: [],
                is_std: false,
                dep_hash: 0,
            }: 100,
        },
    }
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] start 0: Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: [], is_std: false, dep_hash: 0 }
   Compiling cargo-miri-bug v0.1.0 (/cargo-miri-bug)
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] tokens in use: 0, rustc_tokens: [], waiting_rustcs: [] (events this tick: 1)
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] start 1: Unit { pkg: Package { id: PackageId { name: "a-cool-macro", version: "0.1.0", source: "/cargo-miri-bug/a-cool-macro" }, ..: ".." }, target: TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: [], is_std: false, dep_hash: 0 }
   Compiling a-cool-macro v0.1.0 (/cargo-miri-bug/a-cool-macro)
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 1)
     Running `CARGO=/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/cargo-miri-bug CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-miri-bug CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/cargo-miri-bug/target/debug/deps:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' /root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=96c6e85b1c2370b2 -C extra-filename=-96c6e85b1c2370b2 --out-dir /cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2 -C incremental=/cargo-miri-bug/target/debug/incremental -L dependency=/cargo-miri-bug/target/debug/deps`
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:10Z DEBUG cargo::util::paths] invocation time for "/cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-96c6e85b1c2370b2" is 1609347610.773663821s
     Running `CARGO=/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=a_cool_macro CARGO_MANIFEST_DIR=/cargo-miri-bug/a-cool-macro CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=a-cool-macro CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/cargo-miri-bug/target/debug/deps:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' /root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name a_cool_macro --edition=2018 a-cool-macro/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=e7ae0a081fe0234e -C extra-filename=-e7ae0a081fe0234e --out-dir /cargo-miri-bug/target/debug/deps -C incremental=/cargo-miri-bug/target/debug/incremental -L dependency=/cargo-miri-bug/target/debug/deps --extern proc_macro`
[2020-12-30T17:00:10Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:10Z DEBUG cargo::util::paths] invocation time for "/cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-e7ae0a081fe0234e" is 1609347610.773663821s
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] set file mtime /cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-e7ae0a081fe0234e/dep-lib-a-cool-macro to 1609347610.773663821s
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (6d392efed3c58dab) : /cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-e7ae0a081fe0234e/lib-a-cool-macro
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(1)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "a-cool-macro", version: "0.1.0", source: "/cargo-miri-bug/a-cool-macro" }, ..: ".." }, target: TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] set file mtime /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-96c6e85b1c2370b2/dep-build-script-build-script-build to 1609347610.773663821s
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] linking /cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build_script_build-96c6e85b1c2370b2 to /cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (388a964b6af0c5de) : /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-96c6e85b1c2370b2/build-script-build-script-build
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(0)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] start 2: Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }, profile: Profile { debug_assertions: false, overflow_checks: false, incremental: false, ..: default_dev() }, kind: Host, mode: RunCustomBuild, features: [], is_std: false, dep_hash: 0 }
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 0, rustc_tokens: [], waiting_rustcs: [] (events this tick: 1)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] start 3: Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), ..: default() }, kind: Target(CompileTarget { name: "x86_64-pc-windows-gnu" }), mode: RunCustomBuild, features: [], is_std: false, dep_hash: 0 }
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 1)
     Running `/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] invocation time for "/cargo-miri-bug/target/debug/build/cargo-miri-bug-87bb56a7c6dece47" is 1609347611.133673468s
     Running `/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] invocation time for "/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/build/cargo-miri-bug-902ff261c70212db" is 1609347611.133673468s
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-unknown-linux-gnu
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] set file mtime /cargo-miri-bug/target/debug/build/cargo-miri-bug-87bb56a7c6dece47/output to 1609347611.133673468s
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-pc-windows-gnu
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (694a940b2e716fc1) : /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-87bb56a7c6dece47/run-build-script-build-script-build
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] set file mtime /cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/build/cargo-miri-bug-902ff261c70212db/output to 1609347611.133673468s
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(2)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }, profile: Profile { debug_assertions: false, overflow_checks: false, incremental: false, ..: default_dev() }, kind: Host, mode: RunCustomBuild, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (694a940b2e716fc1) : /cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/.fingerprint/cargo-miri-bug-902ff261c70212db/run-build-script-build-script-build
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] start 4: Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { doctest: false, ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: [], is_std: false, dep_hash: 0 }
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 2)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(3)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { ..: custom_build_target("build-script-build", "/cargo-miri-bug/build.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), ..: default() }, kind: Target(CompileTarget { name: "x86_64-pc-windows-gnu" }), mode: RunCustomBuild, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] start 5: Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { doctest: false, ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), debug_assertions: true, overflow_checks: true, incremental: true, ..: default() }, kind: Target(CompileTarget { name: "x86_64-pc-windows-gnu" }), mode: Test, features: [], is_std: false, dep_hash: 0 }
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] invocation time for "/cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-eadce0378def115a" is 1609347611.137673575s
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 2, rustc_tokens: [], waiting_rustcs: [] (events this tick: 2)
     Running `CARGO=/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=cargo_miri_bug CARGO_MANIFEST_DIR=/cargo-miri-bug CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-miri-bug CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CRATE_TARGET=x86_64-unknown-linux-gnu LD_LIBRARY_PATH='/cargo-miri-bug/target/debug/deps:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' OUT_DIR=/cargo-miri-bug/target/debug/build/cargo-miri-bug-87bb56a7c6dece47/out /root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name cargo_miri_bug --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=eadce0378def115a -C extra-filename=-eadce0378def115a --out-dir /cargo-miri-bug/target/debug/deps -C incremental=/cargo-miri-bug/target/debug/incremental -L dependency=/cargo-miri-bug/target/debug/deps --extern a_cool_macro=/cargo-miri-bug/target/debug/deps/liba_cool_macro-e7ae0a081fe0234e.so`
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 3, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
     Running `CARGO=/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=cargo_miri_bug CARGO_MANIFEST_DIR=/cargo-miri-bug CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-miri-bug CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CRATE_TARGET=x86_64-pc-windows-gnu LD_LIBRARY_PATH='/cargo-miri-bug/target/debug/deps:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' OUT_DIR=/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/build/cargo-miri-bug-902ff261c70212db/out /root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name cargo_miri_bug --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=bf06f2061ec6b200 -C extra-filename=-bf06f2061ec6b200 --out-dir /cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps --target x86_64-pc-windows-gnu -C incremental=/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/incremental -L dependency=/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps -L dependency=/cargo-miri-bug/target/debug/deps --extern a_cool_macro=/cargo-miri-bug/target/debug/deps/liba_cool_macro-e7ae0a081fe0234e.so`
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] invocation time for "/cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/.fingerprint/cargo-miri-bug-bf06f2061ec6b200" is 1609347611.137673575s
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (ad3413acb4c78b6) : /cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/.fingerprint/cargo-miri-bug-bf06f2061ec6b200/test-lib-cargo-miri-bug
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(5)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { doctest: false, ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), debug_assertions: true, overflow_checks: true, incremental: true, ..: default() }, kind: Target(CompileTarget { name: "x86_64-pc-windows-gnu" }), mode: Test, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] set file mtime /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-eadce0378def115a/dep-lib-cargo-miri-bug to 1609347611.137673575s
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (e090c9fd155aa282) : /cargo-miri-bug/target/debug/.fingerprint/cargo-miri-bug-eadce0378def115a/lib-cargo-miri-bug
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(4)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" }, ..: ".." }, target: TargetInner { doctest: false, ..: lib_target("cargo-miri-bug", ["lib"], "/cargo-miri-bug/src/lib.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] start 6: Unit { pkg: Package { id: PackageId { name: "a-cool-macro", version: "0.1.0", source: "/cargo-miri-bug/a-cool-macro" }, ..: ".." }, target: TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), debug_assertions: true, overflow_checks: true, incremental: true, ..: default() }, kind: Host, mode: Doctest, features: [], is_std: false, dep_hash: 0 }
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 0, rustc_tokens: [], waiting_rustcs: [] (events this tick: 1)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(6)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "a-cool-macro", version: "0.1.0", source: "/cargo-miri-bug/a-cool-macro" }, ..: ".." }, target: TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), debug_assertions: true, overflow_checks: true, incremental: true, ..: default() }, kind: Host, mode: Doctest, features: [], is_std: false, dep_hash: 0 }): Ok(())
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] start 7: Unit { pkg: Package { id: PackageId { name: "a-cool-macro", version: "0.1.0", source: "/cargo-miri-bug/a-cool-macro" }, ..: ".." }, target: TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), debug_assertions: true, overflow_checks: true, incremental: true, ..: default() }, kind: Host, mode: Test, features: [], is_std: false, dep_hash: 0 }
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 0, rustc_tokens: [], waiting_rustcs: [] (events this tick: 1)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 1, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
     Running `CARGO=/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=a_cool_macro CARGO_MANIFEST_DIR=/cargo-miri-bug/a-cool-macro CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=a-cool-macro CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/cargo-miri-bug/target/debug/deps:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib:/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/lib' /root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri rustc --crate-name a_cool_macro --edition=2018 a-cool-macro/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 --test -C metadata=c9cedba35727b268 -C extra-filename=-c9cedba35727b268 --out-dir /cargo-miri-bug/target/debug/deps -C incremental=/cargo-miri-bug/target/debug/incremental -L dependency=/cargo-miri-bug/target/debug/deps --extern cargo_miri_bug=/cargo-miri-bug/target/debug/deps/libcargo_miri_bug-eadce0378def115a.rlib --extern proc_macro`
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] tokens in use: 0, rustc_tokens: [], waiting_rustcs: [] (events this tick: 0)
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] invocation time for "/cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-c9cedba35727b268" is 1609347611.181674754s
[2020-12-30T17:00:11Z DEBUG cargo::util::paths] set file mtime /cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-c9cedba35727b268/dep-test-lib-a-cool-macro to 1609347611.181674754s
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (30a48379e471ae2d) : /cargo-miri-bug/target/debug/.fingerprint/a-cool-macro-c9cedba35727b268/test-lib-a-cool-macro
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end: JobId(7)
[2020-12-30T17:00:11Z INFO  cargo::core::compiler::job_queue] end (Unit { pkg: Package { id: PackageId { name: "a-cool-macro", version: "0.1.0", source: "/cargo-miri-bug/a-cool-macro" }, ..: ".." }, target: TargetInner { for_host: true, proc_macro: true, ..: lib_target("a-cool-macro", ["proc-macro"], "/cargo-miri-bug/a-cool-macro/src/lib.rs", Edition2018) }, profile: Profile { name: "test", debuginfo: Some(2), debug_assertions: true, overflow_checks: true, incremental: true, ..: default() }, kind: Host, mode: Test, features: [], is_std: false, dep_hash: 0 }): Ok(())
    Finished test [unoptimized + debuginfo] target(s) in 0.72s
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::output_depinfo] can't find dep_info for PackageId { name: "cargo-miri-bug", version: "0.1.0", source: "/cargo-miri-bug" } Target(lib)
[2020-12-30T17:00:11Z DEBUG cargo::core::compiler::output_depinfo] can't find dep_info for PackageId { name: "a-cool-macro", version: "0.1.0", source: "/cargo-miri-bug/a-cool-macro" } Target(lib)
[2020-12-30T17:00:11Z INFO  cargo::util::rustc] updated rustc info cache
     Running `/cargo-miri-bug/target/debug/deps/a_cool_macro-c9cedba35727b268`

running 1 test
test tests::it_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running `/root/.rustup/toolchains/nightly-2020-12-30-x86_64-unknown-linux-gnu/bin/cargo-miri /cargo-miri-bug/target/x86_64-pc-windows-gnu/debug/deps/cargo_miri_bug-bf06f2061ec6b200.exe`

running 1 test
test target ... FAILED

failures:

---- target stdout ----
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"x86_64-unknown-linux-gnu"`,
 right: `"x86_64-pc-windows-gnu"`', src/lib.rs:1:23
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    target

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

[2020-12-30T17:00:14Z DEBUG cargo] exit_with_error; err=CliError { error: Some(test failed, to rerun pass '-p cargo-miri-bug --lib'), exit_code: 101 }
[2020-12-30T17:00:14Z DEBUG cargo] display_error; err=test failed, to rerun pass '-p cargo-miri-bug --lib'
error: test failed, to rerun pass '-p cargo-miri-bug --lib'

It seems that cargo-miri swaped the values of CRATE_TARGET set by two build script invocations (according to the "Complete output").

I also tried CARGO_BUILD_JOBS=1, the issue didn't go away, so this is not caused by a race condition.

This can't be reproduced if both test and doctest are disabled for a-cool-macro (but can be reproduced if only one of them is disabled).

I think this is a cargo-miri bug, because if I replace the target with wasm32-wasi, replace cargo miri test with cargo test, set target.wasm32-wasi.runner properly and set RUSTC_WRAPPER to a sleep script, the assertion never fails (at least I'm not able to reproduce, this can't be reproduced reliably). However, it's also possible that the core issue is in Cargo, cargo-miri just exposed it.

@ghost ghost changed the title cargo-miri is confused by build scripts cargo-miri swaps the values of enviroment variable set by build script Dec 30, 2020
@RalfJung
Copy link
Member

Ugh... wtf.^^ Maybe the way we are hooking into cargo wasn't the best choice after all. It's not clear what else we should do though.

Does this need proc-macro = true to reproduce?

@RalfJung RalfJung added A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug. labels Dec 30, 2020
@bjorn3
Copy link
Member

bjorn3 commented Dec 30, 2020

It's not clear what else we should do though.

I really want cargo to get native support for jit execution, aka cargo would pass a flag that causes rustc (or in this case miri) to directly execute the program instead of expecting it to produce an executable. That would also be useful for cg_clif (https://github.com/bjorn3/rustc_codegen_cranelift/issues/1066).

@ghost
Copy link
Author

ghost commented Dec 30, 2020

Does this need proc-macro = true to reproduce?

Yes. This does not reproduce at least on my side if I remove proc-macro = true.

@RalfJung
Copy link
Member

I really want cargo to get native support for jit execution, aka cargo would pass a flag that causes rustc (or in this case miri) to directly execute the program instead of expecting it to produce an executable.

Yeah that would be pretty nice.

@RalfJung
Copy link
Member

Is CRATE_TARGET a standard environment variable? If not, then where would this ever be set to x86_64-unknown-linux-gnu? Miri is not doing much with build script invocation; it does its best to stay out of the way of those.

It seems that cargo-miri swaped the values of CRATE_TARGET set by two build script invocations (according to the "Complete output").

But the build script is only ever executed the same way here, is it? Where do you see two build script invocations?

@RalfJung
Copy link
Member

Don't these crates have cyclic dependencies? cargo-miri-bugs has

[dependencies]
a-cool-macro = { path = "a-cool-macro" }

and a-cool-macro has

[dev-dependencies]
cargo-miri-bug = { path = ".." }

Are you sure that such cyclic dependencies are supported by cargo? Cc @ehuss

@RalfJung
Copy link
Member

Looks like the build script is run twice in parallel:

     Running `CARGO=/home/r/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/tmp/miritest/cargo-miri-bug CARGO_PKG_AUTHORS=r CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cargo-miri-bug CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/miritest/cargo-miri-bug/target/debug/deps:/home/r/.rustup/toolchains/miri/lib:/home/r/.rustup/toolchains/miri/lib' /home/r/.cargo/bin/cargo-miri rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=96c6e85b1c2370b2 -C extra-filename=-96c6e85b1c2370b2 --out-dir /tmp/miritest/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2 -C incremental=/tmp/miritest/cargo-miri-bug/target/debug/incremental -L dependency=/tmp/miritest/cargo-miri-bug/target/debug/deps`
     Running `CARGO=/home/r/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=a_cool_macro CARGO_MANIFEST_DIR=/tmp/miritest/cargo-miri-bug/a-cool-macro CARGO_PKG_AUTHORS=r CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=a-cool-macro CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/tmp/miritest/cargo-miri-bug/target/debug/deps:/home/r/.rustup/toolchains/miri/lib:/home/r/.rustup/toolchains/miri/lib' /home/r/.cargo/bin/cargo-miri rustc --crate-name a_cool_macro --edition=2018 a-cool-macro/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=e7ae0a081fe0234e -C extra-filename=-e7ae0a081fe0234e --out-dir /tmp/miritest/cargo-miri-bug/target/debug/deps -C incremental=/tmp/miritest/cargo-miri-bug/target/debug/incremental -L dependency=/tmp/miritest/cargo-miri-bug/target/debug/deps --extern proc_macro`
     Running `/tmp/miritest/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
     Running `/tmp/miritest/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-unknown-linux-gnu
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-pc-windows-gnu

Miri doesn't do anything funny with the env vars that exist during compilation either... so I cannot see how this could be a cargo-miri problem, TBH. It might be a race condition in cargo that only surfaces with cargo-miri?

@ghost
Copy link
Author

ghost commented Jan 23, 2021

Is CRATE_TARGET a standard environment variable? If not, then where would this ever be set to x86_64-unknown-linux-gnu?

It's not standard. It's set in the build script:

fn main() {
    println!("cargo:rustc-env=CRATE_TARGET={}", std::env::var("TARGET").unwrap())
}

Miri is not doing much with build script invocation; it does its best to stay out of the way of those.

Miri doesn't do anything funny with the env vars that exist during compilation either... so I cannot see how this could be a cargo-miri problem, TBH.

I agree. This seems a Cargo bug, not a cargo-miri bug. cargo-miri just exposes it. Sorry for misinterpreting.

But the build script is only ever executed the same way here, is it? Where do you see two build script invocations?

I should explain that clearer before. I was cross compiling for x86_64-pc-windows-gnu. a-cool-macro is a proc-macro crate so it's built for the host (x86_64-unknown-linux-gnu). The TARGET (and other build script environment variables) values are different for cargo-miri-bug (x86_64-pc-windows-gnu) and a-cool-macro (x86_64-unknown-linux-gnu), so there should be two build script invocations.

Don't these crates have cyclic dependencies?

Normal cargo test handles that fine. cargo-miri-bug is in dev-dependencies, so I think Cargo can avoid the cycle.

It might be a race condition in cargo that only surfaces with cargo-miri?

IIRC I tried with --jobs 1 and the issue was still persistent. I'm not sure whether --jobs 1 applies to build script invocations, though.

@RalfJung
Copy link
Member

Hm, yeah, I can also still reproduce this with --jobs 1 (and it still only reproduces sometimes). The build script invocations look sequential now:

     Running `/tmp/miritest/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-unknown-linux-gnu
     Running `/tmp/miritest/cargo-miri-bug/target/debug/build/cargo-miri-bug-96c6e85b1c2370b2/build-script-build`
[cargo-miri-bug 0.1.0] cargo:rustc-env=CRATE_TARGET=x86_64-pc-windows-gnu

@RalfJung
Copy link
Member

RalfJung commented Jan 23, 2021

If I comment out this line

if env::var_os(&name).is_none() {

the error seems to go away. What that changes is that when an env var is set both at build time and at run time, it will prefer the build time value.

So looks like CRATE_TARGET is sometimes set to the wrong thing by cargo when cargo invokes the runner? I added

    eprintln!("[cargo-miri runner] CRATE_TARGET = {:?}", env::var("CRATE_TARGET"));

before that loop, and indeed I can see

[cargo-miri runner] CRATE_TARGET = Ok("x86_64-pc-windows-gnu")

when the test passes and

[cargo-miri runner] CRATE_TARGET = Ok("x86_64-unknown-linux-gnu")

when it fails. So, cargo is calling the runner with different environment variables. There might still also be a cargo-miri issue here, but that definitely seems fishy -- Cc @ehuss.

@RalfJung
Copy link
Member

I tried to understand why the build script env vars are passed to the runner in the first place. Looks like this happens via the Compilation::extra_env field. The build script env vars are added to that field here, and these are added to the runner environment here.

Looks like the way this is done is prone to ordering issues, and it's not always the "right" build script invocation whose values get forwarded to the runner.

@RalfJung
Copy link
Member

We now fixed this on the Miri side, but @ehuss I'd still be interested in learning about the intended behavior of cargo wrt. whether build.rs env vars are set when the program is being run or not. Currently it seems they are set but sometimes it is setting the wrong ones.

@ehuss
Copy link
Contributor

ehuss commented Jan 24, 2021

Env vars are not set when the program is run with cargo run. That's not what this test is doing, though, is it?

They are set when building with rustc, that's what they fundamentally are there for.

It looks like as you mentioned above something is fishy with the build script running twice. I'm not familiar with how cargo miri works, but if you can boil it down to a normal cargo invocation, I can take a look.

@ghost
Copy link
Author

ghost commented Jan 25, 2021

@ehuss "normal cargo invocation":

cargo new --lib cargo-bug --vcs none
cd cargo-bug/
echo 'proc-macro-crate = { path = "proc-macro-crate" }
[lib]
doctest = false
[workspace]' >> Cargo.toml
cargo new --lib proc-macro-crate --vcs none
cd proc-macro-crate/
echo '[lib]
proc-macro = true
[dev-dependencies]
cargo-bug = { path = ".." }' >> Cargo.toml
cd ..
echo 'fn main() { println!("cargo:rustc-env=CRATE_TARGET={}", std::env::var("TARGET").unwrap()) }' > build.rs
echo '#[test]
fn target() {
    assert_eq!(env!("CRATE_TARGET"), "i686-unknown-linux-musl");
    assert_eq!(std::env::var_os("CRATE_TARGET"), None);
}' > src/lib.rs
cargo test --workspace --target i686-unknown-linux-musl -vv

The test sometimes fails with

thread 'target' panicked at 'assertion failed: `(left == right)`
  left: `Some("i686-unknown-linux-musl")`,
 right: `None`', src/lib.rs:4:5

And sometimes fails with

thread 'target' panicked at 'assertion failed: `(left == right)`
  left: `Some("x86_64-unknown-linux-gnu")`,
 right: `None`', src/lib.rs:4:5

@RalfJung
Copy link
Member

Env vars are not set when the program is run with cargo run. That's not what this test is doing, though, is it?

They definitely are though -- when I dump the environment in the CARGO_*_RUNNER binary, I see env vars that were set by the build script.

@hyd-dev ah, so you have a cargo-only reproducer? Might be worth opening a cargo issue for this.

@ghost
Copy link
Author

ghost commented Jan 25, 2021

@hyd-dev ah, so you have a cargo-only reproducer?

Not so "cargo-only". I added

assert_eq!(std::env::var_os("CRATE_TARGET"), None);

to the test, to check the environment variable when the built program runs.

Might be worth opening a cargo issue for this.

I'm going to open one.

@RalfJung
Copy link
Member

Not so "cargo-only". I added

Yeah but there's no cargo-miri involved -- it just inspects what cargo does with the environment. So I'd say it qualifies. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants