[INFO] fetching crate contractions 0.5.4... [INFO] testing contractions-0.5.4 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate contractions 0.5.4 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate contractions 0.5.4 [INFO] finished tweaking crates.io crate contractions 0.5.4 [INFO] tweaked toml for crates.io crate contractions 0.5.4 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate contractions 0.5.4 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate contractions 0.5.4 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbcfab1ab1e986e712c7eece70a5757fd7ec41a615f4412a741f6ee510941736 [INFO] running `Command { std: "docker" "start" "-a" "bbcfab1ab1e986e712c7eece70a5757fd7ec41a615f4412a741f6ee510941736", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbcfab1ab1e986e712c7eece70a5757fd7ec41a615f4412a741f6ee510941736", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbcfab1ab1e986e712c7eece70a5757fd7ec41a615f4412a741f6ee510941736", kill_on_drop: false }` [INFO] [stdout] bbcfab1ab1e986e712c7eece70a5757fd7ec41a615f4412a741f6ee510941736 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d884eebe44cc0792e5e27db25a882ce5260bd7e68ed141254802d6735f42e9ab [INFO] running `Command { std: "docker" "start" "-a" "d884eebe44cc0792e5e27db25a882ce5260bd7e68ed141254802d6735f42e9ab", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling serde_test v1.0.126 [INFO] [stderr] Compiling serde_regex v1.1.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling contractions v0.5.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.17s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: serde_test v1.0.126 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d884eebe44cc0792e5e27db25a882ce5260bd7e68ed141254802d6735f42e9ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d884eebe44cc0792e5e27db25a882ce5260bd7e68ed141254802d6735f42e9ab", kill_on_drop: false }` [INFO] [stdout] d884eebe44cc0792e5e27db25a882ce5260bd7e68ed141254802d6735f42e9ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b33e147a8e2de47781526b8395de5df5ce4ff8bfc88e6c63bab8d303958f353 [INFO] running `Command { std: "docker" "start" "-a" "1b33e147a8e2de47781526b8395de5df5ce4ff8bfc88e6c63bab8d303958f353", kill_on_drop: false }` [INFO] [stderr] Compiling contractions v0.5.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> tests/tests.rs:201:24 [INFO] [stdout] | [INFO] [stdout] 201 | replace.insert(find.clone(), "I am"); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.91s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: serde_test v1.0.126 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "1b33e147a8e2de47781526b8395de5df5ce4ff8bfc88e6c63bab8d303958f353", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b33e147a8e2de47781526b8395de5df5ce4ff8bfc88e6c63bab8d303958f353", kill_on_drop: false }` [INFO] [stdout] 1b33e147a8e2de47781526b8395de5df5ce4ff8bfc88e6c63bab8d303958f353 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 665bc7d1194f9b91357c9f4ef3ad9ee953ed2af17f6ca1493b9b77b047d7b5e6 [INFO] running `Command { std: "docker" "start" "-a" "665bc7d1194f9b91357c9f4ef3ad9ee953ed2af17f6ca1493b9b77b047d7b5e6", kill_on_drop: false }` [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> tests/tests.rs:201:24 [INFO] [stderr] | [INFO] [stderr] 201 | replace.insert(find.clone(), "I am"); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `contractions` (test "tests") generated 1 warning (run `cargo fix --test "tests"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: serde_test v1.0.126 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/contractions-d7fc40665f30f221) [INFO] [stderr] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-dc5475bb090eb7a5) [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] [stdout] [INFO] [stdout] running 21 tests [INFO] [stdout] test add ... ok [INFO] [stdout] test add_from_json__from_file ... ok [INFO] [stdout] test apply__double_apostroph_would_have ... ok [INFO] [stdout] test apply__double_apostroph ... ok [INFO] [stdout] test apply__new ... ok [INFO] [stdout] test apply__capitalization ... ok [INFO] [stdout] test apply__dont_replace_possessives ... ok [INFO] [stdout] test apply__double_apostroph_will_have ... ok [INFO] [stdout] test apply__grave_accent ... ok [INFO] [stdout] test from_json__by_hand ... ok [INFO] [stdout] test apply__do_not_replace_partials_where_not_intended ... ok [INFO] [stdout] test apply__double_apostroph_are ... ok [INFO] [stdout] test partials ... ok [INFO] [stdout] test remove__keep_others ... ok [INFO] [stdout] test apply__single_quotation_mark ... ok [INFO] [stdout] test from_json__from_file ... ok [INFO] [stdout] test remove ... ok [INFO] [stdout] test apply__period_after_contraction ... ok [INFO] [stdout] test apply__slang ... ok [INFO] [stdout] test apply__single_apostroph ... ok [INFO] [stdout] test apply__multiple_terms ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.14s [INFO] [stdout] [INFO] [stderr] Doc-tests contractions [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/lib.rs - Contractions::add_from_json (line 173) ... FAILED [INFO] [stdout] test src/lib.rs - Contractions::from_json (line 155) ... FAILED [INFO] [stdout] test src/lib.rs - (line 16) ... FAILED [INFO] [stdout] test src/lib.rs - Contractions::remove (line 196) ... FAILED [INFO] [stdout] test src/lib.rs - Contractions::add (line 212) ... ok [INFO] [stdout] test src/lib.rs - Contractions::default (line 122) ... ok [INFO] [stdout] test src/lib.rs - Contractions::new (line 138) ... ok [INFO] [stdout] test src/lib.rs - Contractions::apply (line 248) ... ok [INFO] [stdout] test src/lib.rs - (line 10) ... ok [INFO] [stdout] test src/lib.rs - Contractions (line 108) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Contractions::add_from_json (line 173) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `SINGLE_CONTRACTIONS_JSON` in crate `contractions` [INFO] [stdout] --> src/lib.rs:177:42 [INFO] [stdout] | [INFO] [stdout] 7 | contractions.add_from_json(contractions::SINGLE_CONTRACTIONS_JSON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `EXPAND_SINGLE_CONTRACTIONS_JSON` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const EXPAND_SINGLE_CONTRACTIONS_JSON :&str = [INFO] [stdout] | ----------------------------------------------- similarly named constant `EXPAND_SINGLE_CONTRACTIONS_JSON` defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Contractions::from_json (line 155) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `SINGLE_CONTRACTIONS_JSON` in crate `contractions` [INFO] [stdout] --> src/lib.rs:158:60 [INFO] [stdout] | [INFO] [stdout] 6 | let contractions = Contractions::from_json(&[contractions::SINGLE_CONTRACTIONS_JSON, contractions::SINGLE_NO_APOSTROPHE_CONTRACTIONS_JSON]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `EXPAND_SINGLE_CONTRACTIONS_JSON` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const EXPAND_SINGLE_CONTRACTIONS_JSON :&str = [INFO] [stdout] | ----------------------------------------------- similarly named constant `EXPAND_SINGLE_CONTRACTIONS_JSON` defined here [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SINGLE_NO_APOSTROPHE_CONTRACTIONS_JSON` in crate `contractions` [INFO] [stdout] --> src/lib.rs:158:100 [INFO] [stdout] | [INFO] [stdout] 6 | let contractions = Contractions::from_json(&[contractions::SINGLE_CONTRACTIONS_JSON, contractions::SINGLE_NO_APOSTROPHE_CONTRACTIONS_JSON]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `EXPAND_SINGLE_NO_APOSTROPHE_CONTRACTIONS_JSON` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | pub const EXPAND_SINGLE_NO_APOSTROPHE_CONTRACTIONS_JSON :&str = [INFO] [stdout] | ------------------------------------------------------------- similarly named constant `EXPAND_SINGLE_NO_APOSTROPHE_CONTRACTIONS_JSON` defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 16) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Contractions` [INFO] [stdout] --> src/lib.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 5 | let mut contractions = Contractions::new(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `Contractions` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use contractions::Contractions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SINGLE_CONTRACTIONS_JSON` in crate `contractions` [INFO] [stdout] --> src/lib.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 6 | contractions.add_from_json(contractions::SINGLE_CONTRACTIONS_JSON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `EXPAND_SINGLE_CONTRACTIONS_JSON` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const EXPAND_SINGLE_CONTRACTIONS_JSON :&str = [INFO] [stdout] | ----------------------------------------------- similarly named constant `EXPAND_SINGLE_CONTRACTIONS_JSON` defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Contractions::remove (line 196) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `SINGLE_CONTRACTIONS_JSON` in crate `contractions` [INFO] [stdout] --> src/lib.rs:201:42 [INFO] [stdout] | [INFO] [stdout] 8 | contractions.add_from_json(contractions::SINGLE_CONTRACTIONS_JSON); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `EXPAND_SINGLE_CONTRACTIONS_JSON` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub const EXPAND_SINGLE_CONTRACTIONS_JSON :&str = [INFO] [stdout] | ----------------------------------------------- similarly named constant `EXPAND_SINGLE_CONTRACTIONS_JSON` defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 16) [INFO] [stdout] src/lib.rs - Contractions::add_from_json (line 173) [INFO] [stdout] src/lib.rs - Contractions::from_json (line 155) [INFO] [stdout] src/lib.rs - Contractions::remove (line 196) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 6 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.00s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "665bc7d1194f9b91357c9f4ef3ad9ee953ed2af17f6ca1493b9b77b047d7b5e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "665bc7d1194f9b91357c9f4ef3ad9ee953ed2af17f6ca1493b9b77b047d7b5e6", kill_on_drop: false }` [INFO] [stdout] 665bc7d1194f9b91357c9f4ef3ad9ee953ed2af17f6ca1493b9b77b047d7b5e6