[INFO] cloning repository https://github.com/serhat359/rust-codes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/serhat359/rust-codes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserhat359%2Frust-codes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserhat359%2Frust-codes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 09dcc30a9715df8958ce04038f9e72befafab4ad [INFO] testing serhat359/rust-codes against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserhat359%2Frust-codes" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/serhat359/rust-codes on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/serhat359/rust-codes [INFO] finished tweaking git repo https://github.com/serhat359/rust-codes [INFO] tweaked toml for git repo https://github.com/serhat359/rust-codes written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/serhat359/rust-codes already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 80f3127694207f59871fc5e7e3188bbda2d638e51d2ba8e3e897efd01e946f2d [INFO] running `Command { std: "docker" "start" "-a" "80f3127694207f59871fc5e7e3188bbda2d638e51d2ba8e3e897efd01e946f2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "80f3127694207f59871fc5e7e3188bbda2d638e51d2ba8e3e897efd01e946f2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80f3127694207f59871fc5e7e3188bbda2d638e51d2ba8e3e897efd01e946f2d", kill_on_drop: false }` [INFO] [stdout] 80f3127694207f59871fc5e7e3188bbda2d638e51d2ba8e3e897efd01e946f2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdb8fade2c08eaf0bb278d16b58964a10793dbce858b39dd8530e6002d74eaf3 [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" "fdb8fade2c08eaf0bb278d16b58964a10793dbce858b39dd8530e6002d74eaf3", kill_on_drop: false }` [INFO] [stderr] Compiling main v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | impl Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | let mut st = Stack::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new() -> Stack{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | Stack{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | top: Node::Null [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | let old_node: Node = self.top.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | match self.top { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | let new_node: Node = match self.top { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:66:23 [INFO] [stdout] | [INFO] [stdout] 66 | let mut x: Node = st.top; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pointer` [INFO] [stdout] --> src/myobject.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | pointer: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/codes.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 102 | println!("2 in array2: {}", array1.into_iter().any(|&x| x == 2)); [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.92s [INFO] running `Command { std: "docker" "inspect" "fdb8fade2c08eaf0bb278d16b58964a10793dbce858b39dd8530e6002d74eaf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdb8fade2c08eaf0bb278d16b58964a10793dbce858b39dd8530e6002d74eaf3", kill_on_drop: false }` [INFO] [stdout] fdb8fade2c08eaf0bb278d16b58964a10793dbce858b39dd8530e6002d74eaf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42335313060e3a59ada00d00fd07aee5592b1027f5f579481624ec4fa8a130d4 [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" "42335313060e3a59ada00d00fd07aee5592b1027f5f579481624ec4fa8a130d4", kill_on_drop: false }` [INFO] [stderr] Compiling main v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | impl Stack { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | let mut st = Stack::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new() -> Stack{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 18 | Stack{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | top: Node::Null [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 24 | let old_node: Node = self.top.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | match self.top { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | let new_node: Node = match self.top { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | *self = Stack{ top: new_node }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stdout] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stdout] --> src/stack.rs:66:23 [INFO] [stdout] | [INFO] [stdout] 66 | let mut x: Node = st.top; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pointer` [INFO] [stdout] --> src/myobject.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | pointer: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/codes.rs:102:37 [INFO] [stdout] | [INFO] [stdout] 102 | println!("2 in array2: {}", array1.into_iter().any(|&x| x == 2)); [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.89s [INFO] running `Command { std: "docker" "inspect" "42335313060e3a59ada00d00fd07aee5592b1027f5f579481624ec4fa8a130d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42335313060e3a59ada00d00fd07aee5592b1027f5f579481624ec4fa8a130d4", kill_on_drop: false }` [INFO] [stdout] 42335313060e3a59ada00d00fd07aee5592b1027f5f579481624ec4fa8a130d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d8822e051b4324aca1a8b110b13155438012aa159c79acb2976032159cc5bac7 [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" "d8822e051b4324aca1a8b110b13155438012aa159c79acb2976032159cc5bac7", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:16:6 [INFO] [stderr] | [INFO] [stderr] 16 | impl Stack { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:53:15 [INFO] [stderr] | [INFO] [stderr] 53 | let mut st = Stack::new(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:17:21 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn new() -> Stack{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:18:6 [INFO] [stderr] | [INFO] [stderr] 18 | Stack{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:28:14 [INFO] [stderr] | [INFO] [stderr] 28 | *self = Stack{ top: new_node }; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:46:14 [INFO] [stderr] | [INFO] [stderr] 46 | *self = Stack{ top: new_node }; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:19:7 [INFO] [stderr] | [INFO] [stderr] 19 | top: Node::Null [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:24:27 [INFO] [stderr] | [INFO] [stderr] 24 | let old_node: Node = self.top.clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:28:21 [INFO] [stderr] | [INFO] [stderr] 28 | *self = Stack{ top: new_node }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 32 | match self.top { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:41:33 [INFO] [stderr] | [INFO] [stderr] 41 | let new_node: Node = match self.top { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | *self = Stack{ top: new_node }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'stack::Stack::top': The stack implemented here uses self defined enum Node, which is not optimized by the compiler. [INFO] [stderr] The code implemented in rawstack.rs is a lot more faster than this code, please use that. The use of Enum complicates stuff, do not use Enums for data holding [INFO] [stderr] --> src/stack.rs:66:23 [INFO] [stderr] | [INFO] [stderr] 66 | let mut x: Node = st.top; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pointer` [INFO] [stderr] --> src/myobject.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | pointer: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/codes.rs:102:37 [INFO] [stderr] | [INFO] [stderr] 102 | println!("2 in array2: {}", array1.into_iter().any(|&x| x == 2)); [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] warning: 15 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [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 [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/main-808800f655aa4d97 [INFO] running `Command { std: "docker" "inspect" "d8822e051b4324aca1a8b110b13155438012aa159c79acb2976032159cc5bac7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8822e051b4324aca1a8b110b13155438012aa159c79acb2976032159cc5bac7", kill_on_drop: false }` [INFO] [stdout] d8822e051b4324aca1a8b110b13155438012aa159c79acb2976032159cc5bac7