[INFO] fetching crate cargo-minify 0.5.0... [INFO] testing cargo-minify-0.5.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate cargo-minify 0.5.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate cargo-minify 0.5.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate cargo-minify 0.5.0 [INFO] tweaked toml for crates.io crate cargo-minify 0.5.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cargo-minify 0.5.0 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] crate crates.io crate cargo-minify 0.5.0 already has a lockfile, it will not be regenerated [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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 75da29b5988d43f4ff5f120dd0644516ab6c14b97a41355be41940bb29dbde1f [INFO] running `Command { std: "docker" "start" "-a" "75da29b5988d43f4ff5f120dd0644516ab6c14b97a41355be41940bb29dbde1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "75da29b5988d43f4ff5f120dd0644516ab6c14b97a41355be41940bb29dbde1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75da29b5988d43f4ff5f120dd0644516ab6c14b97a41355be41940bb29dbde1f", kill_on_drop: false }` [INFO] [stdout] 75da29b5988d43f4ff5f120dd0644516ab6c14b97a41355be41940bb29dbde1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] dbc8e14fc0b414e85d336eb75cc5d29e6f76e24419332d6ba9d109ac88a10e7a [INFO] running `Command { std: "docker" "start" "-a" "dbc8e14fc0b414e85d336eb75cc5d29e6f76e24419332d6ba9d109ac88a10e7a", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling camino v1.1.6 [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling glob-match v0.2.1 [INFO] [stderr] Compiling nu-ansi-term v0.49.0 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling jobserver v0.1.27 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling openssl-sys v0.9.96 [INFO] [stderr] Compiling libz-sys v1.1.12 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Compiling libgit2-sys v0.15.2+1.6.4 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling gumdrop_derive v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling gumdrop v0.8.1 [INFO] [stderr] Compiling git2 v0.17.2 [INFO] [stderr] Compiling cargo-platform v0.1.5 [INFO] [stderr] Compiling multimap v0.9.1 [INFO] [stderr] Compiling cargo_metadata v0.17.0 [INFO] [stderr] Compiling cargo-minify v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.88s [INFO] running `Command { std: "docker" "inspect" "dbc8e14fc0b414e85d336eb75cc5d29e6f76e24419332d6ba9d109ac88a10e7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbc8e14fc0b414e85d336eb75cc5d29e6f76e24419332d6ba9d109ac88a10e7a", kill_on_drop: false }` [INFO] [stdout] dbc8e14fc0b414e85d336eb75cc5d29e6f76e24419332d6ba9d109ac88a10e7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] ef391a9d5f9268051c263b1bb08053efc73a783dafe42f1f37827d7e0ef15177 [INFO] running `Command { std: "docker" "start" "-a" "ef391a9d5f9268051c263b1bb08053efc73a783dafe42f1f37827d7e0ef15177", kill_on_drop: false }` [INFO] [stderr] Compiling cargo-minify v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> examples/useless.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | /// The generated function is unused, but won't be removed by cargo-minify [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `foo` [INFO] [stdout] --> examples/useless.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | macro_rules! foo { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOO` is never used [INFO] [stdout] --> examples/useless.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const FOO: usize = 5; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> examples/useless.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn foo() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Foo` is never constructed [INFO] [stdout] --> examples/useless.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> examples/useless.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Foo { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 19 | fn new() {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: union `Baz` is never used [INFO] [stdout] --> examples/useless.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | union Baz { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Qux` is never used [INFO] [stdout] --> examples/useless.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | type Qux = Bar; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `huk` is never used [INFO] [stdout] --> examples/useless.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | fn huk() {} [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | huk!(); [INFO] [stdout] | ------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `huk` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `baz` is never used [INFO] [stdout] --> examples/useless.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn baz(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.10s [INFO] running `Command { std: "docker" "inspect" "ef391a9d5f9268051c263b1bb08053efc73a783dafe42f1f37827d7e0ef15177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef391a9d5f9268051c263b1bb08053efc73a783dafe42f1f37827d7e0ef15177", kill_on_drop: false }` [INFO] [stdout] ef391a9d5f9268051c263b1bb08053efc73a783dafe42f1f37827d7e0ef15177 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 69d010c4fe45c5cd31f2453b213d2c9f698c2253dc3211190d8fbb5c820c98e7 [INFO] running `Command { std: "docker" "start" "-a" "69d010c4fe45c5cd31f2453b213d2c9f698c2253dc3211190d8fbb5c820c98e7", kill_on_drop: false }` [INFO] [stderr] warning: unused doc comment [INFO] [stdout] [INFO] [stderr] --> examples/useless.rs:54:1 [INFO] [stdout] running 6 tests [INFO] [stderr] | [INFO] [stderr] 54 | /// The generated function is unused, but won't be removed by cargo-minify [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] test cauterize::test::chunk_deletion ... ok [INFO] [stderr] | [INFO] [stdout] test cauterize::test::deletion ... ok [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] test cauterize::test::identifier_to_span ... ok [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] test cauterize::test::type_check ... ok [INFO] [stderr] [INFO] [stdout] test cauterize::test::whitespace_semi_preserval ... ok [INFO] [stderr] warning: unused macro definition: `foo` [INFO] [stdout] test cauterize::test::formatting_preserval ... ok [INFO] [stderr] --> examples/useless.rs:42:14 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stderr] 42 | macro_rules! foo { [INFO] [stdout] [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `FOO` is never used [INFO] [stderr] --> examples/useless.rs:10:7 [INFO] [stderr] | [INFO] [stderr] 10 | const FOO: usize = 5; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `foo` is never used [INFO] [stderr] --> examples/useless.rs:12:4 [INFO] [stderr] | [INFO] [stderr] 12 | fn foo() {} [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Foo` is never constructed [INFO] [stderr] --> examples/useless.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | struct Foo {} [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> examples/useless.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 18 | impl Foo { [INFO] [stderr] | -------- associated function in this implementation [INFO] [stderr] 19 | fn new() {} [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: union `Baz` is never used [INFO] [stderr] --> examples/useless.rs:32:7 [INFO] [stderr] | [INFO] [stderr] 32 | union Baz { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `Qux` is never used [INFO] [stderr] --> examples/useless.rs:36:6 [INFO] [stderr] | [INFO] [stderr] 36 | type Qux = Bar; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `huk` is never used [INFO] [stderr] --> examples/useless.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | fn huk() {} [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | huk!(); [INFO] [stderr] | ------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `huk` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function `baz` is never used [INFO] [stderr] --> examples/useless.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | fn baz(); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `cargo-minify` (example "useless") generated 10 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/cargo_minify-38a9874593ff5cb5) [INFO] running `Command { std: "docker" "inspect" "69d010c4fe45c5cd31f2453b213d2c9f698c2253dc3211190d8fbb5c820c98e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69d010c4fe45c5cd31f2453b213d2c9f698c2253dc3211190d8fbb5c820c98e7", kill_on_drop: false }` [INFO] [stdout] 69d010c4fe45c5cd31f2453b213d2c9f698c2253dc3211190d8fbb5c820c98e7