[INFO] cloning repository https://github.com/frondeus/anki-lingq [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frondeus/anki-lingq" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrondeus%2Fanki-lingq", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrondeus%2Fanki-lingq'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 472712163aba8f7f723a6eed87aff25f26daa77c [INFO] testing frondeus/anki-lingq against 1.100.0-beta.1 for beta-1.100-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrondeus%2Fanki-lingq" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/frondeus/anki-lingq [INFO] finished tweaking git repo https://github.com/frondeus/anki-lingq [INFO] tweaked toml for git repo https://github.com/frondeus/anki-lingq written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/frondeus/anki-lingq on toolchain 1.100.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/frondeus/anki-lingq 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" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a [INFO] running `Command { std: "docker" "start" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.103 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling once_cell v1.16.0 [INFO] [stderr] Compiling cc v1.0.77 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling tokio v1.22.0 [INFO] [stderr] Compiling itoa v1.0.4 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling openssl v0.10.42 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling serde v1.0.147 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.88 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling clap_lex v0.3.0 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling num_cpus v1.14.0 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling ipnet v2.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling tracing-subscriber v0.3.16 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling tl v0.7.7 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling openssl-sys v0.9.77 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling clap_derive v4.0.21 [INFO] [stderr] Compiling serde_repr v0.1.9 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling clap v4.0.26 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.13 [INFO] [stderr] Compiling anki-lingq v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 15 | #[arg(long, default_value_t = ("lingq".to_owned()))] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - #[arg(long, default_value_t = ("lingq".to_owned()))] [INFO] [stdout] 15 + #[arg(long, default_value_t = "lingq".to_owned())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | #[arg(long, default_value_t = ("da".to_owned()))] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - #[arg(long, default_value_t = ("da".to_owned()))] [INFO] [stdout] 18 + #[arg(long, default_value_t = "da".to_owned())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_repr::Deserialize_repr` [INFO] [stdout] --> src/anki.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_repr::Deserialize_repr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_notes(client: &mut Client, config: &Config) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/anki.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | _ => unreachable!("result is null, do you want to load ()?"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/anki.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 53 | (Some(err), _) => Err(err), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 54 | (_, Some(result)) => Ok(result), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 55 | (_, None) => Ok(Default::default()), [INFO] [stdout] | --------- matches some of the same values [INFO] [stdout] 56 | _ => unreachable!("result is null, do you want to load ()?"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:116:48 [INFO] [stdout] | [INFO] [stdout] 116 | pub async fn delete_notes(client: &mut Client, config: &Config, notes: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cards` is never read [INFO] [stdout] --> src/anki.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Note { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 14 | pub cards: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Note` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `order` is never read [INFO] [stdout] --> src/anki.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Field { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 36 | pub order: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_notes` is never used [INFO] [stdout] --> src/anki.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | pub async fn delete_notes(client: &mut Client, config: &Config, notes: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `collection_id` and `views_count` are never read [INFO] [stdout] --> src/lingq.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Lesson { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 33 | pub collection_title: String, [INFO] [stdout] 34 | pub collection_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub views_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lesson` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `locale` are never read [INFO] [stdout] --> src/lingq.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct LingQHint { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 51 | pub term: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 52 | pub text: String, [INFO] [stdout] 53 | pub locale: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LingQHint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_languages` is never used [INFO] [stdout] --> src/lingq.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | async fn get_languages(config: &Config) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_courses` is never used [INFO] [stdout] --> src/lingq.rs:129:14 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn get_courses(client: &mut Client, config: &Config) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.24s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling anki-lingq v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 15 | #[arg(long, default_value_t = ("lingq".to_owned()))] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - #[arg(long, default_value_t = ("lingq".to_owned()))] [INFO] [stdout] 15 + #[arg(long, default_value_t = "lingq".to_owned())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | #[arg(long, default_value_t = ("da".to_owned()))] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - #[arg(long, default_value_t = ("da".to_owned()))] [INFO] [stdout] 18 + #[arg(long, default_value_t = "da".to_owned())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_repr::Deserialize_repr` [INFO] [stdout] --> src/anki.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_repr::Deserialize_repr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | pub async fn get_notes(client: &mut Client, config: &Config) -> Result> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | config: &Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/anki.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | _ => unreachable!("result is null, do you want to load ()?"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/anki.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 53 | (Some(err), _) => Err(err), [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 54 | (_, Some(result)) => Ok(result), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 55 | (_, None) => Ok(Default::default()), [INFO] [stdout] | --------- matches some of the same values [INFO] [stdout] 56 | _ => unreachable!("result is null, do you want to load ()?"), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/anki.rs:116:48 [INFO] [stdout] | [INFO] [stdout] 116 | pub async fn delete_notes(client: &mut Client, config: &Config, notes: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cards` is never read [INFO] [stdout] --> src/anki.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Note { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 14 | pub cards: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Note` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `order` is never read [INFO] [stdout] --> src/anki.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Field { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 36 | pub order: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_notes` is never used [INFO] [stdout] --> src/anki.rs:116:14 [INFO] [stdout] | [INFO] [stdout] 116 | pub async fn delete_notes(client: &mut Client, config: &Config, notes: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `collection_id` and `views_count` are never read [INFO] [stdout] --> src/lingq.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct Lesson { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 33 | pub collection_title: String, [INFO] [stdout] 34 | pub collection_id: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub views_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lesson` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term` and `locale` are never read [INFO] [stdout] --> src/lingq.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct LingQHint { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 51 | pub term: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 52 | pub text: String, [INFO] [stdout] 53 | pub locale: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LingQHint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_languages` is never used [INFO] [stdout] --> src/lingq.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | async fn get_languages(config: &Config) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_courses` is never used [INFO] [stdout] --> src/lingq.rs:129:14 [INFO] [stdout] | [INFO] [stdout] 129 | pub async fn get_courses(client: &mut Client, config: &Config) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.81s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:15:35 [INFO] [stderr] | [INFO] [stderr] 15 | #[arg(long, default_value_t = ("lingq".to_owned()))] [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 15 - #[arg(long, default_value_t = ("lingq".to_owned()))] [INFO] [stderr] 15 + #[arg(long, default_value_t = "lingq".to_owned())] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/main.rs:18:35 [INFO] [stderr] | [INFO] [stderr] 18 | #[arg(long, default_value_t = ("da".to_owned()))] [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 18 - #[arg(long, default_value_t = ("da".to_owned()))] [INFO] [stderr] 18 + #[arg(long, default_value_t = "da".to_owned())] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `serde_repr::Deserialize_repr` [INFO] [stderr] --> src/anki.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use serde_repr::Deserialize_repr; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/anki.rs:82:45 [INFO] [stderr] | [INFO] [stderr] 82 | pub async fn get_notes(client: &mut Client, config: &Config) -> Result> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/anki.rs:108:5 [INFO] [stderr] | [INFO] [stderr] 108 | config: &Config, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/anki.rs:123:5 [INFO] [stderr] | [INFO] [stderr] 123 | config: &Config, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/anki.rs:141:5 [INFO] [stderr] | [INFO] [stderr] 141 | config: &Config, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/anki.rs:56:13 [INFO] [stderr] | [INFO] [stderr] 56 | _ => unreachable!("result is null, do you want to load ()?"), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/anki.rs:56:13 [INFO] [stderr] | [INFO] [stderr] 53 | (Some(err), _) => Err(err), [INFO] [stderr] | -------------- matches some of the same values [INFO] [stderr] 54 | (_, Some(result)) => Ok(result), [INFO] [stderr] | ----------------- matches some of the same values [INFO] [stderr] 55 | (_, None) => Ok(Default::default()), [INFO] [stderr] | --------- matches some of the same values [INFO] [stderr] 56 | _ => unreachable!("result is null, do you want to load ()?"), [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/anki.rs:116:48 [INFO] [stderr] | [INFO] [stderr] 116 | pub async fn delete_notes(client: &mut Client, config: &Config, notes: Vec) -> Result<()> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: field `cards` is never read [INFO] [stderr] --> src/anki.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct Note { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] 14 | pub cards: Vec, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Note` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `order` is never read [INFO] [stderr] --> src/anki.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct Field { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] 36 | pub order: usize, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `delete_notes` is never used [INFO] [stderr] --> src/anki.rs:116:14 [INFO] [stderr] | [INFO] [stderr] 116 | pub async fn delete_notes(client: &mut Client, config: &Config, notes: Vec) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `collection_id` and `views_count` are never read [INFO] [stderr] --> src/lingq.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 32 | pub struct Lesson { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 33 | pub collection_title: String, [INFO] [stderr] 34 | pub collection_id: usize, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 37 | pub views_count: usize, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Lesson` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `term` and `locale` are never read [INFO] [stderr] --> src/lingq.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 50 | pub struct LingQHint { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 51 | pub term: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 52 | pub text: String, [INFO] [stderr] 53 | pub locale: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LingQHint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `get_languages` is never used [INFO] [stderr] --> src/lingq.rs:59:10 [INFO] [stderr] | [INFO] [stderr] 59 | async fn get_languages(config: &Config) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_courses` is never used [INFO] [stderr] --> src/lingq.rs:129:14 [INFO] [stderr] | [INFO] [stderr] 129 | pub async fn get_courses(client: &mut Client, config: &Config) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `anki-lingq` (bin "anki-lingq" test) generated 16 warnings (run `cargo fix --bin "anki-lingq" -p anki-lingq --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: openssl v0.10.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/anki-lingq/10ece6c8ab256f00/out/anki_lingq-10ece6c8ab256f00) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a", kill_on_drop: false }` [INFO] [stdout] 2548e46cc4746dd69274dc018c4ea20442c3163c889685eb1edc9c707990913a