[INFO] fetching crate contractions 0.5.4... [INFO] testing contractions-0.5.4 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate contractions 0.5.4 into /workspace/builds/worker-6-tc1/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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate contractions 0.5.4 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_test v1.0.126 [INFO] [stderr] Downloaded syn v1.0.72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 162f9fe66a08000e7d5bbd09a2fdd53a4dfafef5d4fd581edfb512edf6446aba [INFO] running `Command { std: "docker" "start" "-a" "162f9fe66a08000e7d5bbd09a2fdd53a4dfafef5d4fd581edfb512edf6446aba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "162f9fe66a08000e7d5bbd09a2fdd53a4dfafef5d4fd581edfb512edf6446aba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "162f9fe66a08000e7d5bbd09a2fdd53a4dfafef5d4fd581edfb512edf6446aba", kill_on_drop: false }` [INFO] [stdout] 162f9fe66a08000e7d5bbd09a2fdd53a4dfafef5d4fd581edfb512edf6446aba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 566357e772bdd3df4549abd925a360d97a232ca54a8946b5493f6d0f790bcf3d [INFO] running `Command { std: "docker" "start" "-a" "566357e772bdd3df4549abd925a360d97a232ca54a8946b5493f6d0f790bcf3d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [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 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 quote v1.0.9 [INFO] [stderr] Compiling aho-corasick v0.7.18 [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 16.59s [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 3` [INFO] running `Command { std: "docker" "inspect" "566357e772bdd3df4549abd925a360d97a232ca54a8946b5493f6d0f790bcf3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "566357e772bdd3df4549abd925a360d97a232ca54a8946b5493f6d0f790bcf3d", kill_on_drop: false }` [INFO] [stdout] 566357e772bdd3df4549abd925a360d97a232ca54a8946b5493f6d0f790bcf3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f6550e0df07296a9644973fb0f994c0cfff02f80743035372bb0afb72f5c4bd [INFO] running `Command { std: "docker" "start" "-a" "4f6550e0df07296a9644973fb0f994c0cfff02f80743035372bb0afb72f5c4bd", 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.94s [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 3` [INFO] running `Command { std: "docker" "inspect" "4f6550e0df07296a9644973fb0f994c0cfff02f80743035372bb0afb72f5c4bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f6550e0df07296a9644973fb0f994c0cfff02f80743035372bb0afb72f5c4bd", kill_on_drop: false }` [INFO] [stdout] 4f6550e0df07296a9644973fb0f994c0cfff02f80743035372bb0afb72f5c4bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e7f0e296fa4aa19d917312d2a2c461bd193db3806fbfeaedd058269fe612a29b [INFO] running `Command { std: "docker" "start" "-a" "e7f0e296fa4aa19d917312d2a2c461bd193db3806fbfeaedd058269fe612a29b", 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" -p contractions` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [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 3` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/contractions-d7fc40665f30f221) [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] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-dc5475bb090eb7a5) [INFO] [stdout] [INFO] [stdout] running 21 tests [INFO] [stdout] test add ... ok [INFO] [stdout] test apply__new ... ok [INFO] [stdout] test from_json__by_hand ... ok [INFO] [stdout] test partials ... ok [INFO] [stdout] test from_json__from_file ... ok [INFO] [stdout] test remove ... ok [INFO] [stdout] test add_from_json__from_file ... ok [INFO] [stdout] test remove__keep_others ... ok [INFO] [stdout] test apply__grave_accent ... ok [INFO] [stdout] test apply__dont_replace_possessives ... ok [INFO] [stdout] test apply__capitalization ... ok [INFO] [stdout] test apply__double_apostroph_would_have ... ok [INFO] [stdout] test apply__double_apostroph ... ok [INFO] [stdout] test apply__multiple_terms ... ok [INFO] [stdout] test apply__single_apostroph ... ok [INFO] [stdout] test apply__single_quotation_mark ... ok [INFO] [stdout] test apply__double_apostroph_are ... ok [INFO] [stdout] test apply__do_not_replace_partials_where_not_intended ... ok [INFO] [stdout] test apply__period_after_contraction ... ok [INFO] [stdout] test apply__slang ... ok [INFO] [stdout] test apply__double_apostroph_will_have ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.26s [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 - Contractions::remove (line 196) ... FAILED [INFO] [stdout] test src/lib.rs - (line 16) ... FAILED [INFO] [stdout] test src/lib.rs - Contractions::default (line 122) ... ok [INFO] [stdout] test src/lib.rs - Contractions::add (line 212) ... ok [INFO] [stdout] test src/lib.rs - Contractions::new (line 138) ... ok [INFO] [stdout] test src/lib.rs - Contractions (line 108) ... ok [INFO] [stdout] test src/lib.rs - (line 10) ... ok [INFO] [stdout] test src/lib.rs - Contractions::apply (line 248) ... 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] 177 | 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] 158 | ...ntractions::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] 158 | ...E_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 - 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] 201 | 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 - (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] 18 | 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] 15 + 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] 19 | 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] [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 1.46s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e7f0e296fa4aa19d917312d2a2c461bd193db3806fbfeaedd058269fe612a29b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7f0e296fa4aa19d917312d2a2c461bd193db3806fbfeaedd058269fe612a29b", kill_on_drop: false }` [INFO] [stdout] e7f0e296fa4aa19d917312d2a2c461bd193db3806fbfeaedd058269fe612a29b