[INFO] cloning repository https://github.com/DiveFish/ambiguity-stats [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DiveFish/ambiguity-stats" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDiveFish%2Fambiguity-stats", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDiveFish%2Fambiguity-stats'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e469c4db8599c6c91735609392a307ca87dec1c8 [INFO] building DiveFish/ambiguity-stats against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDiveFish%2Fambiguity-stats" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DiveFish/ambiguity-stats on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DiveFish/ambiguity-stats [INFO] finished tweaking git repo https://github.com/DiveFish/ambiguity-stats [INFO] tweaked toml for git repo https://github.com/DiveFish/ambiguity-stats written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/DiveFish/ambiguity-stats already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded itertools v0.7.8 [INFO] [stderr] Downloaded flate2 v0.2.20 [INFO] [stderr] Downloaded backtrace v0.3.7 [INFO] [stderr] Downloaded backtrace-sys v0.1.16 [INFO] [stderr] Downloaded lazy-init v0.3.0 [INFO] [stderr] Downloaded conllx v0.10.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24860ac121f02683ac7e9820f6631690baacfd4ba38fd9c053b84f7c6edc406d [INFO] running `Command { std: "docker" "start" "-a" "24860ac121f02683ac7e9820f6631690baacfd4ba38fd9c053b84f7c6edc406d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24860ac121f02683ac7e9820f6631690baacfd4ba38fd9c053b84f7c6edc406d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24860ac121f02683ac7e9820f6631690baacfd4ba38fd9c053b84f7c6edc406d", kill_on_drop: false }` [INFO] [stdout] 24860ac121f02683ac7e9820f6631690baacfd4ba38fd9c053b84f7c6edc406d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edc1faaaeed3d9b74bb7b2673455163af34154e1a9cc7794e28a51da72a49e59 [INFO] running `Command { std: "docker" "start" "-a" "edc1faaaeed3d9b74bb7b2673455163af34154e1a9cc7794e28a51da72a49e59", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling miniz-sys v0.1.10 [INFO] [stderr] Compiling rustc-demangle v0.1.8 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling ordermap v0.3.5 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling itertools v0.7.8 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling vec_map v0.8.0 [INFO] [stderr] Compiling lazy-init v0.3.0 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Compiling clap v2.31.2 [INFO] [stderr] Compiling lazy_static v1.0.1 [INFO] [stderr] Compiling flate2 v0.2.20 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling backtrace v0.3.7 [INFO] [stderr] Compiling failure v0.1.1 [INFO] [stderr] Compiling conllx v0.10.2 [INFO] [stderr] Compiling ambiguity-stats v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_ambigs` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_head_same_label_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_head_same_label_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_label_same_head_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_label_same_head_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `subj_obj_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `subj_obj_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `inversion_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `inversion_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/readers/ngram_graph_reader.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / lazy_static! { [INFO] [stdout] 29 | | static ref PP_RELATIONS: HashSet<&'static str> = [INFO] [stdout] 30 | | [PP_RELATION, OBJP_RELATION].iter().cloned().collect(); [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pmi_map_utils.rs:13:72 [INFO] [stdout] | [INFO] [stdout] 13 | Err(why) => panic!("Couldn't open {}: {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pmi_map_utils.rs:63:72 [INFO] [stdout] | [INFO] [stdout] 63 | Err(why) => panic!("Couldn't open {}: {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head_pos` [INFO] [stdout] --> src/ambiguities.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let head_pos = &parser_sent[parser_headidx].pos().expect("No PoS tag"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_head_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:402:17 [INFO] [stdout] | [INFO] [stdout] 402 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:484:17 [INFO] [stdout] | [INFO] [stdout] 484 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:668:17 [INFO] [stdout] | [INFO] [stdout] 668 | let mut verb = gold_sent[*verb-1].lemma(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:753:17 [INFO] [stdout] | [INFO] [stdout] 753 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:884:17 [INFO] [stdout] | [INFO] [stdout] 884 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser_head_headpos` [INFO] [stdout] --> src/ambiguities_ud.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | let parser_head_headpos = &parser_sent[parser_head_headidx-1].pos().expect("No PoS tag"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser_head_headpos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/error_analysis.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut ngram; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let mut token_form; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | let mut head_form; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pmi_map_utils.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut line = reader.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `print_sents` [INFO] [stdout] --> src/tp_fp_fn.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | print_sents: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_print_sents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gold_head_headidx` [INFO] [stdout] --> src/tp_fp_fn.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | let gold_head_headidx = &gold_sent[gold_headidx - 1].head().expect("No head"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gold_head_headidx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `print_sents` [INFO] [stdout] --> src/tp_fp_fn.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | print_sents: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_print_sents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let mut gold_headidx = gold_token.head().expect("No head"); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn pp_ambigs( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_head_same_label_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn pp_head_same_label_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_label_same_head_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn pp_label_same_head_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subj_obj_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:384:8 [INFO] [stdout] | [INFO] [stdout] 384 | pub fn subj_obj_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inversion_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:466:8 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn inversion_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn pp_ambigs( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_head_same_label_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn pp_head_same_label_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_label_same_head_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn pp_label_same_head_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subj_obj_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn subj_obj_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inversion_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn inversion_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:63:54 [INFO] [stdout] | [INFO] [stdout] 63 | let filename = path.to_str().unwrap().clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:70:45 [INFO] [stdout] | [INFO] [stdout] 70 | let filename = dir.to_str().unwrap().clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 94 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:109:29 [INFO] [stdout] | [INFO] [stdout] 109 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 123 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 124 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:139:29 [INFO] [stdout] | [INFO] [stdout] 139 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigram_UD_pmi_to_dpar_pmis` should have a snake case name [INFO] [stdout] --> src/io.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn bigram_UD_pmi_to_dpar_pmis( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bigram_ud_pmi_to_dpar_pmis` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:166:30 [INFO] [stdout] | [INFO] [stdout] 166 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 167 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:182:33 [INFO] [stdout] | [INFO] [stdout] 182 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel.replace("/", ":"), pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:196:30 [INFO] [stdout] | [INFO] [stdout] 196 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 197 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:212:33 [INFO] [stdout] | [INFO] [stdout] 212 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel.replace("/", ":"), pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:239:30 [INFO] [stdout] | [INFO] [stdout] 239 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 240 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:258:29 [INFO] [stdout] | [INFO] [stdout] 258 | ... writeln!(file, "{}\t{}\t{}\t{}\t{}\t{}", w1, w2, w3, d1, d2, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:272:30 [INFO] [stdout] | [INFO] [stdout] 272 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 273 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:291:29 [INFO] [stdout] | [INFO] [stdout] 291 | ... writeln!(file, "{}\t{}\t{}\t{}\t{}\t{}", w1, w2, w3, d1, d2, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/readers/sentence_tree.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | &sentence_tree.push(root); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = &sentence_tree.push(root); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/readers/sentence_tree.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | &sentence_tree.push(Node::new(&sentence[idx].clone(), idx)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = &sentence_tree.push(Node::new(&sentence[idx].clone(), idx)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/reader.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | file.write_all(ngram.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = file.write_all(ngram.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/reader.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | file.write_all(ngram.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 23 | let _ = file.write_all(ngram.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `conllx::Token` [INFO] [stdout] --> src/bin/analysis_main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use conllx::Token; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/bin/pmi_file_converter_main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/pmi_file_converter_main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> src/bin/err_comp_main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `conllx::Sentence` [INFO] [stdout] --> src/bin/err_comp_main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use conllx::Sentence; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/bin/analysis_main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `las` [INFO] [stdout] --> src/bin/attachment_scores_main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | for las in per_sent_las { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_las` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/pmi_file_converter_main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | bigram_pmi_to_dpar_pmis(Path::new(input_dir1), input_dir2, "nsc"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = bigram_pmi_to_dpar_pmis(Path::new(input_dir1), input_dir2, "nsc"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/taz-without-tdz_main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut output_file = File::create(&output_filename).expect("Could not create file"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `token_cnt` is assigned to, but never used [INFO] [stdout] --> src/bin/parser_errors_main.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let mut token_cnt = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_token_cnt` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sent_cnt` is assigned to, but never used [INFO] [stdout] --> src/bin/parser_errors_main.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let mut sent_cnt = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sent_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `las` [INFO] [stdout] --> src/bin/parser_errors_main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let las = (1.0 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_las` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uas` [INFO] [stdout] --> src/bin/parser_errors_main.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | let uas = (1.0 - ((all_combined_errors + all_head_errors) as f32 / all_attachments as f32)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_uas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_sum` [INFO] [stdout] --> src/bin/parser_errors_main.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let error_sum = all_combined_errors + all_head_errors + all_label_errors; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parserdata` [INFO] [stdout] --> src/bin/analysis_main.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | let (golddata, parserdata) = read_gng_data(golddatafile, parserdatafile); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parserdata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/err_comp_main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | writeln!(shared_errs_writer, "{:?}\n", errs_shared[idx]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/bin/analysis_main.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 86 | for (key, val) in inv_verbs.iter() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ngram_size` [INFO] [stdout] --> src/bin/pmis_main.rs:80:64 [INFO] [stdout] | [INFO] [stdout] 80 | fn collect_ngrams(files: Vec, filename_template: &str, ngram_size: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ngram_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/err_comp_main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | writeln!(dep_errs_writer, "{:?}\n", dep_errs[idx]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/err_comp_main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(pmi_errs_writer, "{:?}\n", pmi_errs[idx]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_ngrams` is never used [INFO] [stdout] --> src/bin/pmis_main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn collect_ngrams(files: Vec, filename_template: &str, ngram_size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/pmis_main.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | get_pmi(&focus_words, &context_words, &deprels, input_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = get_pmi(&focus_words, &context_words, &deprels, input_file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.17s [INFO] running `Command { std: "docker" "inspect" "edc1faaaeed3d9b74bb7b2673455163af34154e1a9cc7794e28a51da72a49e59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edc1faaaeed3d9b74bb7b2673455163af34154e1a9cc7794e28a51da72a49e59", kill_on_drop: false }` [INFO] [stdout] edc1faaaeed3d9b74bb7b2673455163af34154e1a9cc7794e28a51da72a49e59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ea8d8bdc49be1768b431e199d7165cbdfe06ebeb30380af5160b8f86377bb9a [INFO] running `Command { std: "docker" "start" "-a" "8ea8d8bdc49be1768b431e199d7165cbdfe06ebeb30380af5160b8f86377bb9a", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_ambigs` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_head_same_label_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_head_same_label_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_label_same_head_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_label_same_head_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `subj_obj_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `subj_obj_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `inversion_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `inversion_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/readers/ngram_graph_reader.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / lazy_static! { [INFO] [stdout] 29 | | static ref PP_RELATIONS: HashSet<&'static str> = [INFO] [stdout] 30 | | [PP_RELATION, OBJP_RELATION].iter().cloned().collect(); [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pmi_map_utils.rs:13:72 [INFO] [stdout] | [INFO] [stdout] 13 | Err(why) => panic!("Couldn't open {}: {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pmi_map_utils.rs:63:72 [INFO] [stdout] | [INFO] [stdout] 63 | Err(why) => panic!("Couldn't open {}: {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head_pos` [INFO] [stdout] --> src/ambiguities.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let head_pos = &parser_sent[parser_headidx].pos().expect("No PoS tag"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_head_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:402:17 [INFO] [stdout] | [INFO] [stdout] 402 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:484:17 [INFO] [stdout] | [INFO] [stdout] 484 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:668:17 [INFO] [stdout] | [INFO] [stdout] 668 | let mut verb = gold_sent[*verb-1].lemma(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:753:17 [INFO] [stdout] | [INFO] [stdout] 753 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:884:17 [INFO] [stdout] | [INFO] [stdout] 884 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser_head_headpos` [INFO] [stdout] --> src/ambiguities_ud.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | let parser_head_headpos = &parser_sent[parser_head_headidx-1].pos().expect("No PoS tag"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser_head_headpos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/error_analysis.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut ngram; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let mut token_form; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | let mut head_form; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pmi_map_utils.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut line = reader.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `print_sents` [INFO] [stdout] --> src/tp_fp_fn.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | print_sents: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_print_sents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gold_head_headidx` [INFO] [stdout] --> src/tp_fp_fn.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | let gold_head_headidx = &gold_sent[gold_headidx - 1].head().expect("No head"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gold_head_headidx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `print_sents` [INFO] [stdout] --> src/tp_fp_fn.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | print_sents: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_print_sents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let mut gold_headidx = gold_token.head().expect("No head"); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn pp_ambigs( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_head_same_label_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn pp_head_same_label_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_label_same_head_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn pp_label_same_head_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subj_obj_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:384:8 [INFO] [stdout] | [INFO] [stdout] 384 | pub fn subj_obj_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inversion_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:466:8 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn inversion_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn pp_ambigs( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_head_same_label_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn pp_head_same_label_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_label_same_head_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn pp_label_same_head_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subj_obj_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn subj_obj_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inversion_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn inversion_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:63:54 [INFO] [stdout] | [INFO] [stdout] 63 | let filename = path.to_str().unwrap().clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:70:45 [INFO] [stdout] | [INFO] [stdout] 70 | let filename = dir.to_str().unwrap().clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 94 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:109:29 [INFO] [stdout] | [INFO] [stdout] 109 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 123 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 124 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:139:29 [INFO] [stdout] | [INFO] [stdout] 139 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigram_UD_pmi_to_dpar_pmis` should have a snake case name [INFO] [stdout] --> src/io.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn bigram_UD_pmi_to_dpar_pmis( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bigram_ud_pmi_to_dpar_pmis` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:166:30 [INFO] [stdout] | [INFO] [stdout] 166 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 167 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:182:33 [INFO] [stdout] | [INFO] [stdout] 182 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel.replace("/", ":"), pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:196:30 [INFO] [stdout] | [INFO] [stdout] 196 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 197 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:212:33 [INFO] [stdout] | [INFO] [stdout] 212 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel.replace("/", ":"), pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:239:30 [INFO] [stdout] | [INFO] [stdout] 239 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 240 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:258:29 [INFO] [stdout] | [INFO] [stdout] 258 | ... writeln!(file, "{}\t{}\t{}\t{}\t{}\t{}", w1, w2, w3, d1, d2, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:272:30 [INFO] [stdout] | [INFO] [stdout] 272 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 273 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:291:29 [INFO] [stdout] | [INFO] [stdout] 291 | ... writeln!(file, "{}\t{}\t{}\t{}\t{}\t{}", w1, w2, w3, d1, d2, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ambiguity-stats v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/readers/sentence_tree.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | &sentence_tree.push(root); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = &sentence_tree.push(root); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/readers/sentence_tree.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | &sentence_tree.push(Node::new(&sentence[idx].clone(), idx)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = &sentence_tree.push(Node::new(&sentence[idx].clone(), idx)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/reader.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | file.write_all(ngram.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = file.write_all(ngram.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/reader.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | file.write_all(ngram.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 23 | let _ = file.write_all(ngram.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `conllx::Token` [INFO] [stdout] --> src/bin/analysis_main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use conllx::Token; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/bin/analysis_main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `token_cnt` is assigned to, but never used [INFO] [stdout] --> src/bin/parser_errors_main.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let mut token_cnt = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_token_cnt` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sent_cnt` is assigned to, but never used [INFO] [stdout] --> src/bin/parser_errors_main.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | let mut sent_cnt = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sent_cnt` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `las` [INFO] [stdout] --> src/bin/parser_errors_main.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let las = (1.0 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_las` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uas` [INFO] [stdout] --> src/bin/parser_errors_main.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | let uas = (1.0 - ((all_combined_errors + all_head_errors) as f32 / all_attachments as f32)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_uas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_sum` [INFO] [stdout] --> src/bin/parser_errors_main.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let error_sum = all_combined_errors + all_head_errors + all_label_errors; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `las` [INFO] [stdout] --> src/bin/attachment_scores_main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | for las in per_sent_las { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_las` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ngram_size` [INFO] [stdout] --> src/bin/pmis_main.rs:80:64 [INFO] [stdout] | [INFO] [stdout] 80 | fn collect_ngrams(files: Vec, filename_template: &str, ngram_size: usize) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ngram_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_ngrams` is never used [INFO] [stdout] --> src/bin/pmis_main.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn collect_ngrams(files: Vec, filename_template: &str, ngram_size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parserdata` [INFO] [stdout] --> src/bin/analysis_main.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | let (golddata, parserdata) = read_gng_data(golddatafile, parserdatafile); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parserdata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/bin/analysis_main.rs:86:10 [INFO] [stdout] | [INFO] [stdout] 86 | for (key, val) in inv_verbs.iter() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/bin/pmi_file_converter_main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/pmi_file_converter_main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/pmis_main.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | get_pmi(&focus_words, &context_words, &deprels, input_file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 77 | let _ = get_pmi(&focus_words, &context_words, &deprels, input_file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/taz-without-tdz_main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let mut output_file = File::create(&output_filename).expect("Could not create file"); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_ambigs` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_head_same_label_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_head_same_label_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `pp_label_same_head_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `pp_label_same_head_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `subj_obj_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `subj_obj_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use ambiguities::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `inversion_ambigs` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 13 | pub use ambiguities_ud::*; [INFO] [stdout] | ----------------- but the name `inversion_ambigs` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/pmi_file_converter_main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | bigram_pmi_to_dpar_pmis(Path::new(input_dir1), input_dir2, "nsc"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = bigram_pmi_to_dpar_pmis(Path::new(input_dir1), input_dir2, "nsc"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/readers/ngram_graph_reader.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / lazy_static! { [INFO] [stdout] 29 | | static ref PP_RELATIONS: HashSet<&'static str> = [INFO] [stdout] 30 | | [PP_RELATION, OBJP_RELATION].iter().cloned().collect(); [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Output` [INFO] [stdout] --> src/bin/err_comp_main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::Output; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `conllx::Sentence` [INFO] [stdout] --> src/bin/err_comp_main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use conllx::Sentence; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pmi_map_utils.rs:13:72 [INFO] [stdout] | [INFO] [stdout] 13 | Err(why) => panic!("Couldn't open {}: {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pmi_map_utils.rs:63:72 [INFO] [stdout] | [INFO] [stdout] 63 | Err(why) => panic!("Couldn't open {}: {}", path.display(), why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/err_comp_main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | writeln!(shared_errs_writer, "{:?}\n", errs_shared[idx]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/err_comp_main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | writeln!(dep_errs_writer, "{:?}\n", dep_errs[idx]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/err_comp_main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | writeln!(pmi_errs_writer, "{:?}\n", pmi_errs[idx]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head_pos` [INFO] [stdout] --> src/ambiguities.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | let head_pos = &parser_sent[parser_headidx].pos().expect("No PoS tag"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_head_pos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:402:17 [INFO] [stdout] | [INFO] [stdout] 402 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:484:17 [INFO] [stdout] | [INFO] [stdout] 484 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:569:17 [INFO] [stdout] | [INFO] [stdout] 569 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:668:17 [INFO] [stdout] | [INFO] [stdout] 668 | let mut verb = gold_sent[*verb-1].lemma(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:753:17 [INFO] [stdout] | [INFO] [stdout] 753 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ambiguities.rs:884:17 [INFO] [stdout] | [INFO] [stdout] 884 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser_head_headpos` [INFO] [stdout] --> src/ambiguities_ud.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | let parser_head_headpos = &parser_sent[parser_head_headidx-1].pos().expect("No PoS tag"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser_head_headpos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/error_analysis.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut ngram; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | let mut token_form; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/readers/ngram_dep_reader.rs:103:29 [INFO] [stdout] | [INFO] [stdout] 103 | let mut head_form; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pmi_map_utils.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let mut line = reader.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `print_sents` [INFO] [stdout] --> src/tp_fp_fn.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | print_sents: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_print_sents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gold_head_headidx` [INFO] [stdout] --> src/tp_fp_fn.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | let gold_head_headidx = &gold_sent[gold_headidx - 1].head().expect("No head"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gold_head_headidx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `print_sents` [INFO] [stdout] --> src/tp_fp_fn.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | print_sents: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_print_sents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let mut gold_headidx = gold_token.head().expect("No head"); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tp_fp_fn.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | let mut verb_idx; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn pp_ambigs( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_head_same_label_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn pp_head_same_label_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_label_same_head_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:333:8 [INFO] [stdout] | [INFO] [stdout] 333 | pub fn pp_label_same_head_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subj_obj_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:384:8 [INFO] [stdout] | [INFO] [stdout] 384 | pub fn subj_obj_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inversion_ambigs` is never used [INFO] [stdout] --> src/ambiguities.rs:466:8 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn inversion_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn pp_ambigs( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_head_same_label_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn pp_head_same_label_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pp_label_same_head_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn pp_label_same_head_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subj_obj_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:207:8 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn subj_obj_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inversion_ambigs` is never used [INFO] [stdout] --> src/ambiguities_ud.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn inversion_ambigs( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:63:54 [INFO] [stdout] | [INFO] [stdout] 63 | let filename = path.to_str().unwrap().clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:70:45 [INFO] [stdout] | [INFO] [stdout] 70 | let filename = dir.to_str().unwrap().clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:93:30 [INFO] [stdout] | [INFO] [stdout] 93 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 94 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:109:29 [INFO] [stdout] | [INFO] [stdout] 109 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 123 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 124 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:139:29 [INFO] [stdout] | [INFO] [stdout] 139 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigram_UD_pmi_to_dpar_pmis` should have a snake case name [INFO] [stdout] --> src/io.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn bigram_UD_pmi_to_dpar_pmis( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `bigram_ud_pmi_to_dpar_pmis` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:166:30 [INFO] [stdout] | [INFO] [stdout] 166 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 167 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:182:33 [INFO] [stdout] | [INFO] [stdout] 182 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel.replace("/", ":"), pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:196:30 [INFO] [stdout] | [INFO] [stdout] 196 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 197 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:212:33 [INFO] [stdout] | [INFO] [stdout] 212 | ... writeln!(file, "{}\t{}\t{}\t{}", w1, w2, deprel.replace("/", ":"), pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:239:30 [INFO] [stdout] | [INFO] [stdout] 239 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 240 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:258:29 [INFO] [stdout] | [INFO] [stdout] 258 | ... writeln!(file, "{}\t{}\t{}\t{}\t{}\t{}", w1, w2, w3, d1, d2, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/io.rs:272:30 [INFO] [stdout] | [INFO] [stdout] 272 | .unwrap() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 273 | | .clone() [INFO] [stdout] | |____________________________^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/io.rs:291:29 [INFO] [stdout] | [INFO] [stdout] 291 | ... writeln!(file, "{}\t{}\t{}\t{}\t{}\t{}", w1, w2, w3, d1, d2, pmi); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/readers/sentence_tree.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | &sentence_tree.push(root); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = &sentence_tree.push(root); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/readers/sentence_tree.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | &sentence_tree.push(Node::new(&sentence[idx].clone(), idx)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = &sentence_tree.push(Node::new(&sentence[idx].clone(), idx)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/reader.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | file.write_all(ngram.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = file.write_all(ngram.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/reader.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | file.write_all(ngram.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 23 | let _ = file.write_all(ngram.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "8ea8d8bdc49be1768b431e199d7165cbdfe06ebeb30380af5160b8f86377bb9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ea8d8bdc49be1768b431e199d7165cbdfe06ebeb30380af5160b8f86377bb9a", kill_on_drop: false }` [INFO] [stdout] 8ea8d8bdc49be1768b431e199d7165cbdfe06ebeb30380af5160b8f86377bb9a