[INFO] crate cppn 0.3.0 is already in cache [INFO] extracting crate cppn 0.3.0 into work/ex/clippy-test-run/sources/stable/reg/cppn/0.3.0 [INFO] extracting crate cppn 0.3.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/cppn/0.3.0 [INFO] validating manifest of cppn-0.3.0 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of cppn-0.3.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing cppn-0.3.0 [INFO] finished frobbing cppn-0.3.0 [INFO] frobbed toml for cppn-0.3.0 written to work/ex/clippy-test-run/sources/stable/reg/cppn/0.3.0/Cargo.toml [INFO] started frobbing cppn-0.3.0 [INFO] finished frobbing cppn-0.3.0 [INFO] frobbed toml for cppn-0.3.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/cppn/0.3.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting cppn-0.3.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-4/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/cppn/0.3.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 4c5a8c83282a71b978d9910cd4871ab5a2ba3a54443610444713c78ea67de541 [INFO] running `"docker" "start" "-a" "4c5a8c83282a71b978d9910cd4871ab5a2ba3a54443610444713c78ea67de541"` [INFO] [stderr] Checking acyclic-network v0.2.0 [INFO] [stderr] Checking cppn v0.3.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:33:13 [INFO] [stderr] | [INFO] [stderr] 33 | kind: kind, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `kind` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | activation_function: activation_function, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `activation_function` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:161:13 [INFO] [stderr] | [INFO] [stderr] 161 | graph: graph, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `graph` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:162:13 [INFO] [stderr] | [INFO] [stderr] 162 | inputs: inputs, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `inputs` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:163:13 [INFO] [stderr] | [INFO] [stderr] 163 | outputs: outputs, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `outputs` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:164:13 [INFO] [stderr] | [INFO] [stderr] 164 | start_nodes: start_nodes, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `start_nodes` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:166:13 [INFO] [stderr] | [INFO] [stderr] 166 | seen_bfs: seen_bfs, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `seen_bfs` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:167:13 [INFO] [stderr] | [INFO] [stderr] 167 | incoming_signals: incoming_signals, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `incoming_signals` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | position: position, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `position` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:46:13 [INFO] [stderr] | [INFO] [stderr] 46 | node_info: node_info, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `node_info` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:47:13 [INFO] [stderr] | [INFO] [stderr] 47 | node_connectivity: node_connectivity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `node_connectivity` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 110 | from_layer: from_layer, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `from_layer` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:111:13 [INFO] [stderr] | [INFO] [stderr] 111 | to_layer: to_layer, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `to_layer` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:112:13 [INFO] [stderr] | [INFO] [stderr] 112 | max_distance_square: max_distance_square, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `max_distance_square` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:168:25 [INFO] [stderr] | [INFO] [stderr] 168 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:169:25 [INFO] [stderr] | [INFO] [stderr] 169 | target: target, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `target` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:33:13 [INFO] [stderr] | [INFO] [stderr] 33 | kind: kind, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `kind` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | activation_function: activation_function, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `activation_function` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:161:13 [INFO] [stderr] | [INFO] [stderr] 161 | graph: graph, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `graph` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:162:13 [INFO] [stderr] | [INFO] [stderr] 162 | inputs: inputs, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `inputs` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:163:13 [INFO] [stderr] | [INFO] [stderr] 163 | outputs: outputs, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `outputs` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:164:13 [INFO] [stderr] | [INFO] [stderr] 164 | start_nodes: start_nodes, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `start_nodes` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:166:13 [INFO] [stderr] | [INFO] [stderr] 166 | seen_bfs: seen_bfs, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `seen_bfs` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/cppn.rs:167:13 [INFO] [stderr] | [INFO] [stderr] 167 | incoming_signals: incoming_signals, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `incoming_signals` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | position: position, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `position` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:46:13 [INFO] [stderr] | [INFO] [stderr] 46 | node_info: node_info, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `node_info` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:47:13 [INFO] [stderr] | [INFO] [stderr] 47 | node_connectivity: node_connectivity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `node_connectivity` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 110 | from_layer: from_layer, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `from_layer` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:111:13 [INFO] [stderr] | [INFO] [stderr] 111 | to_layer: to_layer, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `to_layer` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:112:13 [INFO] [stderr] | [INFO] [stderr] 112 | max_distance_square: max_distance_square, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `max_distance_square` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:168:25 [INFO] [stderr] | [INFO] [stderr] 168 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/substrate.rs:169:25 [INFO] [stderr] | [INFO] [stderr] 169 | target: target, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `target` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: returning the result of a let binding from a block. Consider returning the expression directly. [INFO] [stderr] --> src/cppn.rs:222:13 [INFO] [stderr] | [INFO] [stderr] 222 | output [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::let_and_return)] on by default [INFO] [stderr] note: this expression can be directly returned [INFO] [stderr] --> src/cppn.rs:221:26 [INFO] [stderr] | [INFO] [stderr] 221 | let output = self.graph.node(node_idx).node_type().calculate(input); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/substrate.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | return layer_idx; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `layer_idx` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: returning the result of a let binding from a block. Consider returning the expression directly. [INFO] [stderr] --> src/cppn.rs:222:13 [INFO] [stderr] | [INFO] [stderr] 222 | output [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::let_and_return)] on by default [INFO] [stderr] note: this expression can be directly returned [INFO] [stderr] --> src/cppn.rs:221:26 [INFO] [stderr] | [INFO] [stderr] 221 | let output = self.graph.node(node_idx).node_type().calculate(input); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/substrate.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | return layer_idx; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `layer_idx` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/activation_function.rs:66:52 [INFO] [stderr] | [INFO] [stderr] 66 | GeometricActivationFunction::Linear => format!("{}", x), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: consider using .to_string(): `x.to_string()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_format)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/activation_function.rs:81:55 [INFO] [stderr] | [INFO] [stderr] 81 | GeometricActivationFunction::Constant1 => format!("1.0"), [INFO] [stderr] | ^^^^^^^^^^^^^^ help: consider using .to_string(): `"1.0".to_string()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] [INFO] [stderr] warning: where clauses are not enforced in type aliases [INFO] [stderr] --> src/cppn.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | N: CppnNodeType, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 108 | L: Copy + Debug + Send + Sized + Into, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 109 | EXTID: Copy + Debug + Send + Sized + Ord, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(type_alias_bounds)] on by default [INFO] [stderr] = help: the clause will not be checked when the type alias is used, and should be removed [INFO] [stderr] [INFO] [stderr] warning: identical conversion [INFO] [stderr] --> src/cppn.rs:210:9 [INFO] [stderr] | [INFO] [stderr] 210 | / (0..self.outputs.len()) [INFO] [stderr] 211 | | .into_iter() [INFO] [stderr] | |________________________^ help: consider removing `.into_iter()`: `(0..self.outputs.len())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::identity_conversion)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> src/cppn.rs:290:25 [INFO] [stderr] | [INFO] [stderr] 290 | assert!(layer.len() > 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!layer.is_empty()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_zero)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> src/cppn.rs:296:17 [INFO] [stderr] | [INFO] [stderr] 296 | assert!(layer.len() > 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!layer.is_empty()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `substrate::Layer` [INFO] [stderr] --> src/substrate.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / pub fn new() -> Self { [INFO] [stderr] 36 | | Layer { nodes: Vec::new() } [INFO] [stderr] 37 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 24 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `substrate::Substrate` [INFO] [stderr] --> src/substrate.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | / pub fn new() -> Self { [INFO] [stderr] 87 | | Substrate { [INFO] [stderr] 88 | | layers: Vec::new(), [INFO] [stderr] 89 | | layer_links: Vec::new(), [INFO] [stderr] 90 | | } [INFO] [stderr] 91 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 74 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/activation_function.rs:66:52 [INFO] [stderr] | [INFO] [stderr] 66 | GeometricActivationFunction::Linear => format!("{}", x), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: consider using .to_string(): `x.to_string()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_format)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/activation_function.rs:81:55 [INFO] [stderr] | [INFO] [stderr] 81 | GeometricActivationFunction::Constant1 => format!("1.0"), [INFO] [stderr] | ^^^^^^^^^^^^^^ help: consider using .to_string(): `"1.0".to_string()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | / assert_eq!( [INFO] [stderr] 104 | | 0.0, [INFO] [stderr] 105 | | GeometricActivationFunction::LinearBipolarClipped.calculate(0.0) [INFO] [stderr] 106 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | / assert_eq!( [INFO] [stderr] 104 | | 0.0, [INFO] [stderr] 105 | | GeometricActivationFunction::LinearBipolarClipped.calculate(0.0) [INFO] [stderr] 106 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | / assert_eq!( [INFO] [stderr] 108 | | 1.0, [INFO] [stderr] 109 | | GeometricActivationFunction::LinearBipolarClipped.calculate(1.0) [INFO] [stderr] 110 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | / assert_eq!( [INFO] [stderr] 108 | | 1.0, [INFO] [stderr] 109 | | GeometricActivationFunction::LinearBipolarClipped.calculate(1.0) [INFO] [stderr] 110 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:111:5 [INFO] [stderr] | [INFO] [stderr] 111 | / assert_eq!( [INFO] [stderr] 112 | | -1.0, [INFO] [stderr] 113 | | GeometricActivationFunction::LinearBipolarClipped.calculate(-1.0) [INFO] [stderr] 114 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:111:5 [INFO] [stderr] | [INFO] [stderr] 111 | / assert_eq!( [INFO] [stderr] 112 | | -1.0, [INFO] [stderr] 113 | | GeometricActivationFunction::LinearBipolarClipped.calculate(-1.0) [INFO] [stderr] 114 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:115:5 [INFO] [stderr] | [INFO] [stderr] 115 | / assert_eq!( [INFO] [stderr] 116 | | 0.5, [INFO] [stderr] 117 | | GeometricActivationFunction::LinearBipolarClipped.calculate(0.5) [INFO] [stderr] 118 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:115:5 [INFO] [stderr] | [INFO] [stderr] 115 | / assert_eq!( [INFO] [stderr] 116 | | 0.5, [INFO] [stderr] 117 | | GeometricActivationFunction::LinearBipolarClipped.calculate(0.5) [INFO] [stderr] 118 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 119 | / assert_eq!( [INFO] [stderr] 120 | | -0.5, [INFO] [stderr] 121 | | GeometricActivationFunction::LinearBipolarClipped.calculate(-0.5) [INFO] [stderr] 122 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 119 | / assert_eq!( [INFO] [stderr] 120 | | -0.5, [INFO] [stderr] 121 | | GeometricActivationFunction::LinearBipolarClipped.calculate(-0.5) [INFO] [stderr] 122 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 123 | / assert_eq!( [INFO] [stderr] 124 | | 1.0, [INFO] [stderr] 125 | | GeometricActivationFunction::LinearBipolarClipped.calculate(1.1) [INFO] [stderr] 126 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 123 | / assert_eq!( [INFO] [stderr] 124 | | 1.0, [INFO] [stderr] 125 | | GeometricActivationFunction::LinearBipolarClipped.calculate(1.1) [INFO] [stderr] 126 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:127:5 [INFO] [stderr] | [INFO] [stderr] 127 | / assert_eq!( [INFO] [stderr] 128 | | -1.0, [INFO] [stderr] 129 | | GeometricActivationFunction::LinearBipolarClipped.calculate(-1.1) [INFO] [stderr] 130 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:127:5 [INFO] [stderr] | [INFO] [stderr] 127 | / assert_eq!( [INFO] [stderr] 128 | | -1.0, [INFO] [stderr] 129 | | GeometricActivationFunction::LinearBipolarClipped.calculate(-1.1) [INFO] [stderr] 130 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:135:5 [INFO] [stderr] | [INFO] [stderr] 135 | / assert_eq!( [INFO] [stderr] 136 | | 0.0, [INFO] [stderr] 137 | | GeometricActivationFunction::LinearClipped.calculate(0.0) [INFO] [stderr] 138 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:135:5 [INFO] [stderr] | [INFO] [stderr] 135 | / assert_eq!( [INFO] [stderr] 136 | | 0.0, [INFO] [stderr] 137 | | GeometricActivationFunction::LinearClipped.calculate(0.0) [INFO] [stderr] 138 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:139:5 [INFO] [stderr] | [INFO] [stderr] 139 | / assert_eq!( [INFO] [stderr] 140 | | 1.0, [INFO] [stderr] 141 | | GeometricActivationFunction::LinearClipped.calculate(1.0) [INFO] [stderr] 142 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:139:5 [INFO] [stderr] | [INFO] [stderr] 139 | / assert_eq!( [INFO] [stderr] 140 | | 1.0, [INFO] [stderr] 141 | | GeometricActivationFunction::LinearClipped.calculate(1.0) [INFO] [stderr] 142 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:143:5 [INFO] [stderr] | [INFO] [stderr] 143 | / assert_eq!( [INFO] [stderr] 144 | | 0.0, [INFO] [stderr] 145 | | GeometricActivationFunction::LinearClipped.calculate(-1.0) [INFO] [stderr] 146 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:143:5 [INFO] [stderr] | [INFO] [stderr] 143 | / assert_eq!( [INFO] [stderr] 144 | | 0.0, [INFO] [stderr] 145 | | GeometricActivationFunction::LinearClipped.calculate(-1.0) [INFO] [stderr] 146 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:147:5 [INFO] [stderr] | [INFO] [stderr] 147 | / assert_eq!( [INFO] [stderr] 148 | | 0.5, [INFO] [stderr] 149 | | GeometricActivationFunction::LinearClipped.calculate(0.5) [INFO] [stderr] 150 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:147:5 [INFO] [stderr] | [INFO] [stderr] 147 | / assert_eq!( [INFO] [stderr] 148 | | 0.5, [INFO] [stderr] 149 | | GeometricActivationFunction::LinearClipped.calculate(0.5) [INFO] [stderr] 150 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:151:5 [INFO] [stderr] | [INFO] [stderr] 151 | / assert_eq!( [INFO] [stderr] 152 | | 0.0, [INFO] [stderr] 153 | | GeometricActivationFunction::LinearClipped.calculate(-0.5) [INFO] [stderr] 154 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:151:5 [INFO] [stderr] | [INFO] [stderr] 151 | / assert_eq!( [INFO] [stderr] 152 | | 0.0, [INFO] [stderr] 153 | | GeometricActivationFunction::LinearClipped.calculate(-0.5) [INFO] [stderr] 154 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:155:5 [INFO] [stderr] | [INFO] [stderr] 155 | / assert_eq!( [INFO] [stderr] 156 | | 1.0, [INFO] [stderr] 157 | | GeometricActivationFunction::LinearClipped.calculate(1.1) [INFO] [stderr] 158 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:155:5 [INFO] [stderr] | [INFO] [stderr] 155 | / assert_eq!( [INFO] [stderr] 156 | | 1.0, [INFO] [stderr] 157 | | GeometricActivationFunction::LinearClipped.calculate(1.1) [INFO] [stderr] 158 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:159:5 [INFO] [stderr] | [INFO] [stderr] 159 | / assert_eq!( [INFO] [stderr] 160 | | 0.0, [INFO] [stderr] 161 | | GeometricActivationFunction::LinearClipped.calculate(-1.1) [INFO] [stderr] 162 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:159:5 [INFO] [stderr] | [INFO] [stderr] 159 | / assert_eq!( [INFO] [stderr] 160 | | 0.0, [INFO] [stderr] 161 | | GeometricActivationFunction::LinearClipped.calculate(-1.1) [INFO] [stderr] 162 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:167:5 [INFO] [stderr] | [INFO] [stderr] 167 | assert_eq!(1.0, GeometricActivationFunction::Constant1.calculate(0.0)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:167:5 [INFO] [stderr] | [INFO] [stderr] 167 | assert_eq!(1.0, GeometricActivationFunction::Constant1.calculate(0.0)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:168:5 [INFO] [stderr] | [INFO] [stderr] 168 | assert_eq!(1.0, GeometricActivationFunction::Constant1.calculate(-1.0)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:168:5 [INFO] [stderr] | [INFO] [stderr] 168 | assert_eq!(1.0, GeometricActivationFunction::Constant1.calculate(-1.0)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/activation_function.rs:169:5 [INFO] [stderr] | [INFO] [stderr] 169 | assert_eq!(1.0, GeometricActivationFunction::Constant1.calculate(1.0)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/activation_function.rs:169:5 [INFO] [stderr] | [INFO] [stderr] 169 | assert_eq!(1.0, GeometricActivationFunction::Constant1.calculate(1.0)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: where clauses are not enforced in type aliases [INFO] [stderr] --> src/cppn.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | N: CppnNodeType, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 108 | L: Copy + Debug + Send + Sized + Into, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 109 | EXTID: Copy + Debug + Send + Sized + Ord, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(type_alias_bounds)] on by default [INFO] [stderr] = help: the clause will not be checked when the type alias is used, and should be removed [INFO] [stderr] [INFO] [stderr] warning: identical conversion [INFO] [stderr] --> src/cppn.rs:210:9 [INFO] [stderr] | [INFO] [stderr] 210 | / (0..self.outputs.len()) [INFO] [stderr] 211 | | .into_iter() [INFO] [stderr] | |________________________^ help: consider removing `.into_iter()`: `(0..self.outputs.len())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::identity_conversion)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_conversion [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> src/cppn.rs:290:25 [INFO] [stderr] | [INFO] [stderr] 290 | assert!(layer.len() > 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!layer.is_empty()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_zero)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> src/cppn.rs:296:17 [INFO] [stderr] | [INFO] [stderr] 296 | assert!(layer.len() > 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!layer.is_empty()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/position.rs:140:5 [INFO] [stderr] | [INFO] [stderr] 140 | assert_eq!(0.0, Position3d::origin().distance(&Position3d::origin())); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/position.rs:140:5 [INFO] [stderr] | [INFO] [stderr] 140 | assert_eq!(0.0, Position3d::origin().distance(&Position3d::origin())); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/position.rs:141:5 [INFO] [stderr] | [INFO] [stderr] 141 | / assert_eq!( [INFO] [stderr] 142 | | 1.0, [INFO] [stderr] 143 | | Position3d::origin().distance(&Position3d::new(1.0, 0.0, 0.0)) [INFO] [stderr] 144 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/position.rs:141:5 [INFO] [stderr] | [INFO] [stderr] 141 | / assert_eq!( [INFO] [stderr] 142 | | 1.0, [INFO] [stderr] 143 | | Position3d::origin().distance(&Position3d::new(1.0, 0.0, 0.0)) [INFO] [stderr] 144 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/position.rs:145:5 [INFO] [stderr] | [INFO] [stderr] 145 | / assert_eq!( [INFO] [stderr] 146 | | 2.0, [INFO] [stderr] 147 | | Position3d::origin().distance(&Position3d::new(2.0, 0.0, 0.0)) [INFO] [stderr] 148 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/position.rs:145:5 [INFO] [stderr] | [INFO] [stderr] 145 | / assert_eq!( [INFO] [stderr] 146 | | 2.0, [INFO] [stderr] 147 | | Position3d::origin().distance(&Position3d::new(2.0, 0.0, 0.0)) [INFO] [stderr] 148 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/position.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / assert_eq!( [INFO] [stderr] 150 | | (2.0f64).sqrt(), [INFO] [stderr] 151 | | Position3d::origin().distance(&Position3d::new(1.0, 0.0, 1.0)) [INFO] [stderr] 152 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/position.rs:149:5 [INFO] [stderr] | [INFO] [stderr] 149 | / assert_eq!( [INFO] [stderr] 150 | | (2.0f64).sqrt(), [INFO] [stderr] 151 | | Position3d::origin().distance(&Position3d::new(1.0, 0.0, 1.0)) [INFO] [stderr] 152 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/position.rs:153:5 [INFO] [stderr] | [INFO] [stderr] 153 | / assert_eq!( [INFO] [stderr] 154 | | (2.0f64).sqrt(), [INFO] [stderr] 155 | | Position3d::origin().distance(&Position3d::new(1.0, 0.0, -1.0)) [INFO] [stderr] 156 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/position.rs:153:5 [INFO] [stderr] | [INFO] [stderr] 153 | / assert_eq!( [INFO] [stderr] 154 | | (2.0f64).sqrt(), [INFO] [stderr] 155 | | Position3d::origin().distance(&Position3d::new(1.0, 0.0, -1.0)) [INFO] [stderr] 156 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/position.rs:157:5 [INFO] [stderr] | [INFO] [stderr] 157 | / assert_eq!( [INFO] [stderr] 158 | | (2.0f64).sqrt(), [INFO] [stderr] 159 | | Position3d::origin().distance(&Position3d::new(-1.0, 0.0, -1.0)) [INFO] [stderr] 160 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/position.rs:157:5 [INFO] [stderr] | [INFO] [stderr] 157 | / assert_eq!( [INFO] [stderr] 158 | | (2.0f64).sqrt(), [INFO] [stderr] 159 | | Position3d::origin().distance(&Position3d::new(-1.0, 0.0, -1.0)) [INFO] [stderr] 160 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `substrate::Layer` [INFO] [stderr] --> src/substrate.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / pub fn new() -> Self { [INFO] [stderr] 36 | | Layer { nodes: Vec::new() } [INFO] [stderr] 37 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 24 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `substrate::Substrate` [INFO] [stderr] --> src/substrate.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | / pub fn new() -> Self { [INFO] [stderr] 87 | | Substrate { [INFO] [stderr] 88 | | layers: Vec::new(), [INFO] [stderr] 89 | | layer_links: Vec::new(), [INFO] [stderr] 90 | | } [INFO] [stderr] 91 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 74 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 23 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `cppn`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "4c5a8c83282a71b978d9910cd4871ab5a2ba3a54443610444713c78ea67de541"` [INFO] running `"docker" "rm" "-f" "4c5a8c83282a71b978d9910cd4871ab5a2ba3a54443610444713c78ea67de541"` [INFO] [stdout] 4c5a8c83282a71b978d9910cd4871ab5a2ba3a54443610444713c78ea67de541