[INFO] crate petgraph 0.4.13 is already in cache [INFO] extracting crate petgraph 0.4.13 into work/ex/clippy-test-run/sources/stable/reg/petgraph/0.4.13 [INFO] extracting crate petgraph 0.4.13 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/petgraph/0.4.13 [INFO] validating manifest of petgraph-0.4.13 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 petgraph-0.4.13 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 petgraph-0.4.13 [INFO] finished frobbing petgraph-0.4.13 [INFO] frobbed toml for petgraph-0.4.13 written to work/ex/clippy-test-run/sources/stable/reg/petgraph/0.4.13/Cargo.toml [INFO] started frobbing petgraph-0.4.13 [INFO] finished frobbing petgraph-0.4.13 [INFO] frobbed toml for petgraph-0.4.13 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/petgraph/0.4.13/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 petgraph-0.4.13 against stable+rustflags=-Dclippy::into_iter_on_array for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-2/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/petgraph/0.4.13:/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 -Dclippy::into_iter_on_array" "-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] b73c17b9e4abec6dde01f0cd10bd83eeb6f206451e3cace768f12b3fc7bc8f50 [INFO] running `"docker" "start" "-a" "b73c17b9e4abec6dde01f0cd10bd83eeb6f206451e3cace768f12b3fc7bc8f50"` [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Checking defmac v0.1.3 [INFO] [stderr] Checking odds v0.2.26 [INFO] [stderr] Checking petgraph v0.4.13 (/opt/crater/workdir) [INFO] [stderr] error[E0602]: unknown lint: `clippy::into_iter_on_array` [INFO] [stderr] | [INFO] [stderr] = note: requested on the command line with `-D clippy::into_iter_on_array` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0602`. [INFO] [stderr] error: Could not compile `libc`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/visit/traversal.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | stack: stack, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `stack` [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/visit/traversal.rs:63:13 [INFO] [stderr] | [INFO] [stderr] 63 | discovered: discovered, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `discovered` [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/visit/traversal.rs:245:13 [INFO] [stderr] | [INFO] [stderr] 245 | stack: stack, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `stack` [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/visit/traversal.rs:246:13 [INFO] [stderr] | [INFO] [stderr] 246 | discovered: discovered, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `discovered` [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/visit/traversal.rs:367:13 [INFO] [stderr] | [INFO] [stderr] 367 | context: context, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `context` [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/data.rs:359:13 [INFO] [stderr] | [INFO] [stderr] 359 | f: f, [INFO] [stderr] | ^^^^ help: replace it with: `f` [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/data.rs:392:69 [INFO] [stderr] | [INFO] [stderr] 392 | Element::Node { ref mut weight } => Element::Node { weight: weight }, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/data.rs:394:40 [INFO] [stderr] | [INFO] [stderr] 394 | => Element::Edge { source: source, target: target, weight: weight }, [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/data.rs:394:56 [INFO] [stderr] | [INFO] [stderr] 394 | => Element::Edge { source: source, target: target, weight: weight }, [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/data.rs:394:72 [INFO] [stderr] | [INFO] [stderr] 394 | => Element::Edge { source: source, target: target, weight: weight }, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/algo/dominators.rs:183:9 [INFO] [stderr] | [INFO] [stderr] 183 | root: root, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `root` [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/algo/mod.rs:471:9 [INFO] [stderr] | [INFO] [stderr] 471 | subgraphs: subgraphs, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `subgraphs` [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/algo/mod.rs:472:9 [INFO] [stderr] | [INFO] [stderr] 472 | sort_edges: sort_edges, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `sort_edges` [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/graphmap.rs:351:13 [INFO] [stderr] | [INFO] [stderr] 351 | dir: dir, [INFO] [stderr] | ^^^^^^^^ help: replace it with: `dir` [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/graphmap.rs:366:13 [INFO] [stderr] | [INFO] [stderr] 366 | from: from, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `from` [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/graph_impl/mod.rs:491:25 [INFO] [stderr] | [INFO] [stderr] 491 | let node = Node{weight: weight, next: [EdgeIndex::end(), EdgeIndex::end()]}; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/graph_impl/mod.rs:533:13 [INFO] [stderr] | [INFO] [stderr] 533 | weight: weight, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/graph_impl/mod.rs:934:56 [INFO] [stderr] | [INFO] [stderr] 934 | Externals{iter: self.nodes.iter().enumerate(), dir: dir, ty: PhantomData} [INFO] [stderr] | ^^^^^^^^ help: replace it with: `dir` [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/graph_impl/mod.rs:1476:9 [INFO] [stderr] | [INFO] [stderr] 1476 | edges: edges, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `edges` [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/graph_impl/mod.rs:1477:9 [INFO] [stderr] | [INFO] [stderr] 1477 | next: next, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `next` [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/graph_impl/mod.rs:1478:9 [INFO] [stderr] | [INFO] [stderr] 1478 | dir: dir [INFO] [stderr] | ^^^^^^^^ help: replace it with: `dir` [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/graph_impl/mod.rs:1561:21 [INFO] [stderr] | [INFO] [stderr] 1561 | weight: weight, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/graph_impl/stable_graph/mod.rs:801:13 [INFO] [stderr] | [INFO] [stderr] 801 | g: g, [INFO] [stderr] | ^^^^ help: replace it with: `g` [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/graph_impl/stable_graph/mod.rs:1297:21 [INFO] [stderr] | [INFO] [stderr] 1297 | weight: weight, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/graph_impl/stable_graph/mod.rs:1368:21 [INFO] [stderr] | [INFO] [stderr] 1368 | weight: weight, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/graph_impl/stable_graph/mod.rs:1383:21 [INFO] [stderr] | [INFO] [stderr] 1383 | weight: weight, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `weight` [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/dot.rs:66:13 [INFO] [stderr] | [INFO] [stderr] 66 | 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/dot.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 67 | config: config, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `config` [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/unionfind.rs:45:19 [INFO] [stderr] | [INFO] [stderr] 45 | UnionFind{parent: parent, rank: rank} [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `parent` [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/unionfind.rs:45:35 [INFO] [stderr] | [INFO] [stderr] 45 | UnionFind{parent: parent, rank: rank} [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `rank` [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/csr.rs:452:17 [INFO] [stderr] | [INFO] [stderr] 452 | index: index, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `index` [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/csr.rs:510:21 [INFO] [stderr] | [INFO] [stderr] 510 | index: index, [INFO] [stderr] | ^^^^^^^^^^^^ help: replace it with: `index` [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: this `else { if .. }` block can be collapsed [INFO] [stderr] --> src/graphmap.rs:140:16 [INFO] [stderr] | [INFO] [stderr] 140 | } else { [INFO] [stderr] | ________________^ [INFO] [stderr] 141 | | if a <= b { (a, b) } else { (b, a) } [INFO] [stderr] 142 | | } [INFO] [stderr] | |_________^ help: try: `if a <= b { (a, b) } else { (b, a) }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] [INFO] [stderr] error: equal expressions as operands to `!=` [INFO] [stderr] --> src/scored.rs:42:19 [INFO] [stderr] | [INFO] [stderr] 42 | } else if a != a && b != b { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::eq_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op [INFO] [stderr] [INFO] [stderr] error: equal expressions as operands to `!=` [INFO] [stderr] --> src/scored.rs:42:29 [INFO] [stderr] | [INFO] [stderr] 42 | } else if a != a && b != b { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op [INFO] [stderr] [INFO] [stderr] error: equal expressions as operands to `!=` [INFO] [stderr] --> src/scored.rs:45:19 [INFO] [stderr] | [INFO] [stderr] 45 | } else if a != a { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/algo/dominators.rs:223:33 [INFO] [stderr] | [INFO] [stderr] 223 | -> (Vec, HashMap>) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::type_complexity)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/algo/mod.rs:484:17 [INFO] [stderr] | [INFO] [stderr] 484 | sort_edges: BinaryHeap>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/algo/mod.rs:555:8 [INFO] [stderr] | [INFO] [stderr] 555 | -> Result<(Vec, Vec>), NegativeCycle> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: this block may be rewritten with the `?` operator [INFO] [stderr] --> src/graph_impl/mod.rs:612:9 [INFO] [stderr] | [INFO] [stderr] 612 | / if self.nodes.get(a.index()).is_none() { [INFO] [stderr] 613 | | return None [INFO] [stderr] 614 | | } [INFO] [stderr] | |_________^ help: replace_it_with: `self.nodes.get(a.index())?;` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::question_mark)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#question_mark [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/graph_impl/mod.rs:990:38 [INFO] [stderr] | [INFO] [stderr] 990 | pub fn into_nodes_edges(self) -> (Vec>, Vec>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: redundant pattern matching, consider using `is_some()` [INFO] [stderr] --> src/graph_impl/stable_graph/mod.rs:223:20 [INFO] [stderr] | [INFO] [stderr] 223 | if let Some(_) = node.weight { [INFO] [stderr] | _____________- ^^^^^^^ [INFO] [stderr] 224 | | node.next = [EdgeIndex::end(), EdgeIndex::end()]; [INFO] [stderr] 225 | | } [INFO] [stderr] | |_____________- help: try this: `if node.weight.is_some()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_pattern_matching)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] warning: redundant pattern matching, consider using `is_none()` [INFO] [stderr] --> src/graph_impl/stable_graph/mod.rs:297:16 [INFO] [stderr] | [INFO] [stderr] 297 | if let None = node_weight { [INFO] [stderr] | _________- ^^^^ [INFO] [stderr] 298 | | return None; [INFO] [stderr] 299 | | } [INFO] [stderr] | |_________- help: try this: `if node_weight.is_none()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] warning: redundant pattern matching, consider using `is_none()` [INFO] [stderr] --> src/graph_impl/stable_graph/mod.rs:966:24 [INFO] [stderr] | [INFO] [stderr] 966 | if let None = n.weight { [INFO] [stderr] | _________________- ^^^^ [INFO] [stderr] 967 | | free_node = n.next[0]._into_node(); [INFO] [stderr] 968 | | free_node_len += 1; [INFO] [stderr] 969 | | continue; [INFO] [stderr] 970 | | } [INFO] [stderr] | |_________________- help: try this: `if n.weight.is_none()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] warning: redundant pattern matching, consider using `is_none()` [INFO] [stderr] --> src/graph_impl/stable_graph/mod.rs:982:24 [INFO] [stderr] | [INFO] [stderr] 982 | if let None = n.weight { [INFO] [stderr] | _________________- ^^^^ [INFO] [stderr] 983 | | free_edge = n.next[0]; [INFO] [stderr] 984 | | free_edge_len += 1; [INFO] [stderr] 985 | | continue; [INFO] [stderr] 986 | | } [INFO] [stderr] | |_________________- help: try this: `if n.weight.is_none()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stderr] --> src/graph_impl/frozen.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 53 | -> (&mut as Index>::Output, [INFO] [stderr] | ____________^ [INFO] [stderr] 54 | | &mut as Index>::Output) [INFO] [stderr] | |___________________________________________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 42 [INFO] [stderr] --> src/isomorphism.rs:224:1 [INFO] [stderr] | [INFO] [stderr] 224 | / fn try_match(st: &mut [Vf2State; 2], [INFO] [stderr] 225 | | g0: &Graph, [INFO] [stderr] 226 | | g1: &Graph, [INFO] [stderr] 227 | | node_match: &mut F, [INFO] [stderr] ... | [INFO] [stderr] 454 | | None [INFO] [stderr] 455 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/lib.rs:129:21 [INFO] [stderr] | [INFO] [stderr] 129 | pub fn opposite(&self) -> Direction { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/lib.rs:138:18 [INFO] [stderr] | [INFO] [stderr] 138 | pub fn index(&self) -> usize { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `petgraph`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "b73c17b9e4abec6dde01f0cd10bd83eeb6f206451e3cace768f12b3fc7bc8f50"` [INFO] running `"docker" "rm" "-f" "b73c17b9e4abec6dde01f0cd10bd83eeb6f206451e3cace768f12b3fc7bc8f50"` [INFO] [stdout] b73c17b9e4abec6dde01f0cd10bd83eeb6f206451e3cace768f12b3fc7bc8f50