[INFO] fetching crate cheats 0.4.0... [INFO] testing cheats-0.4.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate cheats 0.4.0 into /workspace/builds/worker-5-tc1/source [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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cheats 0.4.0 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 20 packages to latest compatible versions [INFO] [stderr] Adding logos v0.11.4 (available: v0.15.1) [INFO] [stderr] Adding rstest v0.6.4 (available: v0.26.1) [INFO] [stderr] Adding snafu v0.6.10 (available: v0.8.9) [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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded snafu v0.6.10 [INFO] [stderr] Downloaded snafu-derive v0.6.10 [INFO] [stderr] Downloaded beef v0.4.4 [INFO] [stderr] Downloaded logos-derive v0.11.5 [INFO] [stderr] Downloaded logos v0.11.4 [INFO] [stderr] Downloaded rstest v0.6.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 1db63a5e8ea29c37be05e2fb6faeac18bf1140e958ef60239adaaaf904cd62ff [INFO] running `Command { std: "docker" "start" "-a" "1db63a5e8ea29c37be05e2fb6faeac18bf1140e958ef60239adaaaf904cd62ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1db63a5e8ea29c37be05e2fb6faeac18bf1140e958ef60239adaaaf904cd62ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1db63a5e8ea29c37be05e2fb6faeac18bf1140e958ef60239adaaaf904cd62ff", kill_on_drop: false }` [INFO] [stdout] 1db63a5e8ea29c37be05e2fb6faeac18bf1140e958ef60239adaaaf904cd62ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 48a7581231d745125c53a3f0c0cea1719a5eb15242ee316b6366d3824be9b6ba [INFO] running `Command { std: "docker" "start" "-a" "48a7581231d745125c53a3f0c0cea1719a5eb15242ee316b6366d3824be9b6ba", kill_on_drop: false }` [INFO] [stderr] Compiling doc-comment v0.3.4 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling beef v0.4.4 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling snafu v0.6.10 [INFO] [stderr] Compiling logos-derive v0.11.5 [INFO] [stderr] Compiling logos v0.11.4 [INFO] [stderr] Compiling cheats v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:277:21 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<()> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:302:23 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<()> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/code.rs:51:72 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult { [INFO] [stdout] | -- the lifetime is named here ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult<'a, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.80s [INFO] running `Command { std: "docker" "inspect" "48a7581231d745125c53a3f0c0cea1719a5eb15242ee316b6366d3824be9b6ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48a7581231d745125c53a3f0c0cea1719a5eb15242ee316b6366d3824be9b6ba", kill_on_drop: false }` [INFO] [stdout] 48a7581231d745125c53a3f0c0cea1719a5eb15242ee316b6366d3824be9b6ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 82ccaa2c68ed53a8b441dcd4fe1de45c188e3202e84c5f9f70e66a77ff469b2b [INFO] running `Command { std: "docker" "start" "-a" "82ccaa2c68ed53a8b441dcd4fe1de45c188e3202e84c5f9f70e66a77ff469b2b", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:277:21 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<()> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:302:23 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<()> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/code.rs:51:72 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult { [INFO] [stdout] | -- the lifetime is named here ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult<'a, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [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] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:277:21 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<()> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:302:23 [INFO] [stdout] | [INFO] [stdout] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<()> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<'_, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/code.rs:51:72 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult { [INFO] [stdout] | -- the lifetime is named here ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult<'a, Self> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.44s [INFO] running `Command { std: "docker" "inspect" "82ccaa2c68ed53a8b441dcd4fe1de45c188e3202e84c5f9f70e66a77ff469b2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82ccaa2c68ed53a8b441dcd4fe1de45c188e3202e84c5f9f70e66a77ff469b2b", kill_on_drop: false }` [INFO] [stdout] 82ccaa2c68ed53a8b441dcd4fe1de45c188e3202e84c5f9f70e66a77ff469b2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 93f9a4b8524a3eec5a64a0a91e3080627c64cddd12fc2c2c4f3a577dc3b02a43 [INFO] running `Command { std: "docker" "start" "-a" "93f9a4b8524a3eec5a64a0a91e3080627c64cddd12fc2c2c4f3a577dc3b02a43", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:277:21 [INFO] [stderr] | [INFO] [stderr] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<()> { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 277 | pub fn register(&mut self, name: &'a str, invokable: Box) -> ShellResult<'_, ()> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:302:23 [INFO] [stderr] | [INFO] [stderr] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<()> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 302 | pub fn unregister(&mut self, name: &'a str) -> ShellResult<'_, ()> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/code.rs:51:72 [INFO] [stderr] | [INFO] [stderr] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult { [INFO] [stderr] | -- the lifetime is named here ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 51 | pub(crate) fn new(name: &'a str, invokable: Box) -> CodeResult<'a, Self> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `cheats` (lib) generated 3 warnings (run `cargo fix --lib -p cheats` to apply 3 suggestions) [INFO] [stderr] warning: `cheats` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cheats-f12e26c80ebb18ac) [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test code::tests::code_new_success ... ok [INFO] [stdout] test io::tests::read ... ok [INFO] [stdout] test io::tests::write ... ok [INFO] [stdout] test parser::tests::lexer ... ok [INFO] [stdout] test tests::filter_names ... ok [INFO] [stdout] test tests::register::case_2 ... ok [INFO] [stdout] test tests::register::case_1 ... ok [INFO] [stdout] test tests::register::case_3 ... ok [INFO] [stdout] test tests::run_out::case_1 ... ok [INFO] [stdout] test tests::run_out::case_2 ... ok [INFO] [stdout] test tests::run_script_file ... ok [INFO] [stdout] test tests::unregister::case_1 ... 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; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests cheats [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test src/lib.rs - (line 31) ... FAILED [INFO] [stdout] test src/lib.rs - (line 127) ... FAILED [INFO] [stdout] test src/lib.rs - (line 161) ... FAILED [INFO] [stdout] test src/lib.rs - (line 153) ... FAILED [INFO] [stdout] test src/lib.rs - (line 140) ... FAILED [INFO] [stdout] test src/lib.rs - (line 95) ... FAILED [INFO] [stdout] test src/lib.rs - (line 111) ... FAILED [INFO] [stdout] test src/lib.rs - (line 190) ... FAILED [INFO] [stdout] test src/lib.rs - (line 40) ... ok [INFO] [stdout] test src/lib.rs - (line 52) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 31) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `is` [INFO] [stdout] --> src/lib.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | this is a comment as well [INFO] [stdout] | ^^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 127) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/lib.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | let sv_codes: Vec<&str> = shell.filter_names("sv", true).collect(); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 161) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/lib.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | let content: String = fs::read_to_string("path/to/file.script") [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 153) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | 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:155:1 [INFO] [stdout] | [INFO] [stdout] 155 | 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 140) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:141:27 [INFO] [stdout] | [INFO] [stdout] 141 | 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 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 95) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ClHello` in this scope [INFO] [stdout] --> src/lib.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | 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:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | 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 111) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | 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 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 190) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `shell` in this scope [INFO] [stdout] --> src/lib.rs:193:26 [INFO] [stdout] | [INFO] [stdout] 193 | 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 `String` in the current scope [INFO] [stdout] --> src/lib.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | 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 `String` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `String` consider using one of the following associated functions: [INFO] [stdout] String::new [INFO] [stdout] String::with_capacity [INFO] [stdout] String::try_with_capacity [INFO] [stdout] String::from_utf8 [INFO] [stdout] and 9 others [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/alloc/src/string.rs:444:4 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `FromIterator` which provides `from_iter` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 190 + use std::iter::FromIterator; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from_str` with a similar name [INFO] [stdout] | [INFO] [stdout] 198 - String::from_iter(stdout_bytes.into_iter().map(|b| b as char)) // map u8 bytes to char [INFO] [stdout] 198 + String::from_str(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 111) [INFO] [stdout] src/lib.rs - (line 127) [INFO] [stdout] src/lib.rs - (line 140) [INFO] [stdout] src/lib.rs - (line 153) [INFO] [stdout] src/lib.rs - (line 161) [INFO] [stdout] src/lib.rs - (line 190) [INFO] [stdout] src/lib.rs - (line 31) [INFO] [stdout] src/lib.rs - (line 95) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "93f9a4b8524a3eec5a64a0a91e3080627c64cddd12fc2c2c4f3a577dc3b02a43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93f9a4b8524a3eec5a64a0a91e3080627c64cddd12fc2c2c4f3a577dc3b02a43", kill_on_drop: false }` [INFO] [stdout] 93f9a4b8524a3eec5a64a0a91e3080627c64cddd12fc2c2c4f3a577dc3b02a43