[INFO] fetching crate itm_logger 0.1.2... [INFO] testing itm_logger-0.1.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate itm_logger 0.1.2 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate itm_logger 0.1.2 [INFO] finished tweaking crates.io crate itm_logger 0.1.2 [INFO] tweaked toml for crates.io crate itm_logger 0.1.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate itm_logger 0.1.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 22 packages to latest compatible versions [INFO] [stderr] Adding cortex-m v0.6.7 (available: v0.7.7) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cdccc77ab69b98217125db425bbe38d3336a1a268ec1180b0d8e144b59f1d6f0 [INFO] running `Command { std: "docker" "start" "-a" "cdccc77ab69b98217125db425bbe38d3336a1a268ec1180b0d8e144b59f1d6f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cdccc77ab69b98217125db425bbe38d3336a1a268ec1180b0d8e144b59f1d6f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cdccc77ab69b98217125db425bbe38d3336a1a268ec1180b0d8e144b59f1d6f0", kill_on_drop: false }` [INFO] [stdout] cdccc77ab69b98217125db425bbe38d3336a1a268ec1180b0d8e144b59f1d6f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cae2fd85a7db506657599545664fbeba20a4d663e1e80ac2267db006b98fd9d9 [INFO] running `Command { std: "docker" "start" "-a" "cae2fd85a7db506657599545664fbeba20a4d663e1e80ac2267db006b98fd9d9", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling cortex-m v0.6.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling generic-array v0.13.3 [INFO] [stderr] Compiling as-slice v0.1.5 [INFO] [stderr] Compiling aligned v0.3.5 [INFO] [stderr] Compiling itm_logger v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `cortex_m::peripheral::TPIU::ptr`: Use the associated constant `PTR` instead [INFO] [stdout] --> src/logger.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | (*TPIU::ptr()).acpr.write(prescaler); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cortex_m::peripheral::ITM::ptr`: Use the associated constant `PTR` instead [INFO] [stdout] --> src/logger.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | let itm = &mut (*ITM::ptr()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/logger.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | log::set_logger(&LOGGER) [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 107 | log::set_logger(&raw const LOGGER) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.25s [INFO] running `Command { std: "docker" "inspect" "cae2fd85a7db506657599545664fbeba20a4d663e1e80ac2267db006b98fd9d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cae2fd85a7db506657599545664fbeba20a4d663e1e80ac2267db006b98fd9d9", kill_on_drop: false }` [INFO] [stdout] cae2fd85a7db506657599545664fbeba20a4d663e1e80ac2267db006b98fd9d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa886d9754b32c5bf92c8cea2475ca3d489ac044d687bd49e42d58987a842dce [INFO] running `Command { std: "docker" "start" "-a" "fa886d9754b32c5bf92c8cea2475ca3d489ac044d687bd49e42d58987a842dce", kill_on_drop: false }` [INFO] [stderr] Compiling itm_logger v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `cortex_m::peripheral::TPIU::ptr`: Use the associated constant `PTR` instead [INFO] [stdout] --> src/logger.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | (*TPIU::ptr()).acpr.write(prescaler); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cortex_m::peripheral::ITM::ptr`: Use the associated constant `PTR` instead [INFO] [stdout] --> src/logger.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | let itm = &mut (*ITM::ptr()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/logger.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | log::set_logger(&LOGGER) [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 107 | log::set_logger(&raw const LOGGER) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cortex_m::peripheral::TPIU::ptr`: Use the associated constant `PTR` instead [INFO] [stdout] --> src/logger.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | (*TPIU::ptr()).acpr.write(prescaler); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cortex_m::peripheral::ITM::ptr`: Use the associated constant `PTR` instead [INFO] [stdout] --> src/logger.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 83 | let itm = &mut (*ITM::ptr()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/logger.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | log::set_logger(&LOGGER) [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 107 | log::set_logger(&raw const LOGGER) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "fa886d9754b32c5bf92c8cea2475ca3d489ac044d687bd49e42d58987a842dce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa886d9754b32c5bf92c8cea2475ca3d489ac044d687bd49e42d58987a842dce", kill_on_drop: false }` [INFO] [stdout] fa886d9754b32c5bf92c8cea2475ca3d489ac044d687bd49e42d58987a842dce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bbf945ceb4517dbe0d9c46712ad994f945b23642dd3486b5b4911f2e34c12b3a [INFO] running `Command { std: "docker" "start" "-a" "bbf945ceb4517dbe0d9c46712ad994f945b23642dd3486b5b4911f2e34c12b3a", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated associated function `cortex_m::peripheral::TPIU::ptr`: Use the associated constant `PTR` instead [INFO] [stderr] --> src/logger.rs:35:21 [INFO] [stderr] | [INFO] [stderr] 35 | (*TPIU::ptr()).acpr.write(prescaler); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `cortex_m::peripheral::ITM::ptr`: Use the associated constant `PTR` instead [INFO] [stderr] --> src/logger.rs:83:39 [INFO] [stderr] | [INFO] [stderr] 83 | let itm = &mut (*ITM::ptr()); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/logger.rs:107:25 [INFO] [stderr] | [INFO] [stderr] 107 | log::set_logger(&LOGGER) [INFO] [stderr] | ^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 107 | log::set_logger(&raw const LOGGER) [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: `itm_logger` (lib) generated 3 warnings [INFO] [stderr] warning: `itm_logger` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/itm_logger-7c5979216b4f400d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests itm_logger [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 8) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Hertz` in this scope [INFO] [stdout] --> src/lib.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 16 | let sysclk: Hertz = clocks.sysclk().into(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `clocks` in this scope [INFO] [stdout] --> src/lib.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 16 | let sysclk: Hertz = clocks.sysclk().into(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ITM_BAUD_RATE` in this scope [INFO] [stdout] --> src/lib.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 17 | update_tpiu_baudrate(sysclk.0, ITM_BAUD_RATE).expect("Failed to reset TPIU baudrate"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 8) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "bbf945ceb4517dbe0d9c46712ad994f945b23642dd3486b5b4911f2e34c12b3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbf945ceb4517dbe0d9c46712ad994f945b23642dd3486b5b4911f2e34c12b3a", kill_on_drop: false }` [INFO] [stdout] bbf945ceb4517dbe0d9c46712ad994f945b23642dd3486b5b4911f2e34c12b3a