[INFO] crate cheats 0.4.0 is already in cache [INFO] testing cheats-0.4.0 against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] extracting crate cheats 0.4.0 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate cheats 0.4.0 on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate cheats 0.4.0 [INFO] finished tweaking crates.io crate cheats 0.4.0 [INFO] tweaked toml for crates.io crate cheats 0.4.0 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edb99c4f8d6df805527f62584eb8f2dfd799b248cfc40f695744fa0008f37ad0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "edb99c4f8d6df805527f62584eb8f2dfd799b248cfc40f695744fa0008f37ad0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edb99c4f8d6df805527f62584eb8f2dfd799b248cfc40f695744fa0008f37ad0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edb99c4f8d6df805527f62584eb8f2dfd799b248cfc40f695744fa0008f37ad0", kill_on_drop: false }` [INFO] [stdout] edb99c4f8d6df805527f62584eb8f2dfd799b248cfc40f695744fa0008f37ad0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60ed8def4e44f8a1b3a944c4c0895c51565082d35e18414ec477e6dad73f53a9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "60ed8def4e44f8a1b3a944c4c0895c51565082d35e18414ec477e6dad73f53a9", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.35 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling beef v0.4.4 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling logos-derive v0.11.5 [INFO] [stderr] Compiling snafu-derive v0.6.8 [INFO] [stderr] Compiling derivative v2.1.1 [INFO] [stderr] Compiling snafu v0.6.8 [INFO] [stderr] Compiling logos v0.11.4 [INFO] [stderr] Compiling cheats v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 48.12s [INFO] running `Command { std: "docker" "inspect" "60ed8def4e44f8a1b3a944c4c0895c51565082d35e18414ec477e6dad73f53a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60ed8def4e44f8a1b3a944c4c0895c51565082d35e18414ec477e6dad73f53a9", kill_on_drop: false }` [INFO] [stdout] 60ed8def4e44f8a1b3a944c4c0895c51565082d35e18414ec477e6dad73f53a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41f6de3f73c2bc2ab04304f2a328b82ff08bb712012ad8dbd60ff949eb38f77f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "41f6de3f73c2bc2ab04304f2a328b82ff08bb712012ad8dbd60ff949eb38f77f", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rstest v0.6.4 [INFO] [stderr] Compiling cheats v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 15.69s [INFO] running `Command { std: "docker" "inspect" "41f6de3f73c2bc2ab04304f2a328b82ff08bb712012ad8dbd60ff949eb38f77f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41f6de3f73c2bc2ab04304f2a328b82ff08bb712012ad8dbd60ff949eb38f77f", kill_on_drop: false }` [INFO] [stdout] 41f6de3f73c2bc2ab04304f2a328b82ff08bb712012ad8dbd60ff949eb38f77f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c7a3509b6d58026c7bbb0f20c295e3e559ab2b4e47ad6817642c5cb391d5af02 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c7a3509b6d58026c7bbb0f20c295e3e559ab2b4e47ad6817642c5cb391d5af02", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/cheats-f3dc28bab9c7b297 [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test tests::unregister::case_1 ... ok [INFO] [stdout] test code::tests::code_new_success ... ok [INFO] [stdout] test tests::run_script_file ... ok [INFO] [stdout] test tests::register::case_3 ... ok [INFO] [stdout] test tests::register::case_1 ... ok [INFO] [stdout] test io::tests::write ... ok [INFO] [stdout] test parser::tests::lexer ... ok [INFO] [stdout] test tests::run_out::case_1 ... ok [INFO] [stdout] test tests::filter_names ... ok [INFO] [stdout] test tests::register::case_2 ... ok [INFO] [stdout] test tests::run_out::case_2 ... ok [INFO] [stdout] test io::tests::read ... ok [INFO] [stdout] test tests::unregister::case_2 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests cheats [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/lib.rs - (line 162) ... FAILED [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - (line 154) ... FAILED [INFO] [stdout] test src/lib.rs - (line 112) ... FAILED [INFO] [stdout] test src/lib.rs - (line 141) ... FAILED [INFO] [stdout] test src/lib.rs - (line 96) ... FAILED [INFO] [stdout] test src/lib.rs - (line 128) ... FAILED [INFO] [stdout] test src/lib.rs - (line 191) ... FAILED [INFO] [stdout] test src/lib.rs - (line 53) ... ok [INFO] [stdout] test src/lib.rs - (line 41) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 162) stdout ---- [INFO] [stdout] error: expected one of `!`, `(`, `::`, `;`, `<`, or `=`, found `[` [INFO] [stdout] --> src/lib.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 10 | let content_str: &content[..]; [INFO] [stdout] | ^ expected one of `!`, `(`, `::`, `;`, `<`, or `=` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `is` [INFO] [stdout] --> src/lib.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 4 | this is a comment as well [INFO] [stdout] | ^^ expected one of 8 possible tokens [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 154) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 3 | shell.run("cl_hello").expect("Could not run the code."); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:156:1 [INFO] [stdout] | [INFO] [stdout] 4 | shell.run("cl_hello Eray").expect("Could not run the code."); [INFO] [stdout] | ^^^^^ not found in this scope [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 112) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 3 | shell.unregister("cl_hello").expect("Could not unregister the code."); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 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 141) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:142:27 [INFO] [stdout] | [INFO] [stdout] 3 | let sv_codes: Vec<&str> = shell.filter_names("sv", true).collect(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 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 96) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ClHello` in this scope [INFO] [stdout] --> src/lib.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 5 | let invokable = Box::new(ClHello); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 6 | shell.register("cl_hello", invokable).expect("Could not register the code."); [INFO] [stdout] | ^^^^^ not found in this scope [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 128) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,` [INFO] [stdout] --> src/lib.rs:135:47 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(foo_codes, ["sv_foo", "sv_foobar"]), [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:131:27 [INFO] [stdout] | [INFO] [stdout] 5 | let sv_codes: Vec<&str> = shell.filter_names("sv", true).collect(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:134:28 [INFO] [stdout] | [INFO] [stdout] 8 | let foo_codes: Vec<&str> = shell.filter_names("foo", false).collect(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 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 191) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:194:26 [INFO] [stdout] | [INFO] [stdout] 5 | let ref mut stdout = shell.stdout; // take a reference to stdout [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_iter` found for struct `std::string::String` in the current scope [INFO] [stdout] --> src/lib.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 10 | String::from_iter(stdout_bytes.into_iter().map(|b| b as char)) // map u8 bytes to char [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `std::string::String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::FromIterator; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function with a similar name [INFO] [stdout] | [INFO] [stdout] 10 | String::from_utf8(stdout_bytes.into_iter().map(|b| b as char)) // map u8 bytes to char [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [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 112) [INFO] [stdout] src/lib.rs - (line 128) [INFO] [stdout] src/lib.rs - (line 141) [INFO] [stdout] src/lib.rs - (line 154) [INFO] [stdout] src/lib.rs - (line 162) [INFO] [stdout] src/lib.rs - (line 191) [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - (line 96) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "c7a3509b6d58026c7bbb0f20c295e3e559ab2b4e47ad6817642c5cb391d5af02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7a3509b6d58026c7bbb0f20c295e3e559ab2b4e47ad6817642c5cb391d5af02", kill_on_drop: false }` [INFO] [stdout] c7a3509b6d58026c7bbb0f20c295e3e559ab2b4e47ad6817642c5cb391d5af02