[INFO] fetching crate rate_my_professor_api_rs 0.1.5... [INFO] testing rate_my_professor_api_rs-0.1.5 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate rate_my_professor_api_rs 0.1.5 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate rate_my_professor_api_rs 0.1.5 [INFO] finished tweaking crates.io crate rate_my_professor_api_rs 0.1.5 [INFO] tweaked toml for crates.io crate rate_my_professor_api_rs 0.1.5 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rate_my_professor_api_rs 0.1.5 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rate_my_professor_api_rs 0.1.5 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded filepath v0.2.0 [INFO] [stderr] Downloaded awc v3.5.1 [INFO] [stderr] Downloaded rustls v0.23.20 [INFO] [stderr] Downloaded tokio-openssl v0.6.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db70abe6929b6f2b3945a9fb0c33c8ed6b6096825e10f67559f886024b2c9394 [INFO] running `Command { std: "docker" "start" "-a" "db70abe6929b6f2b3945a9fb0c33c8ed6b6096825e10f67559f886024b2c9394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db70abe6929b6f2b3945a9fb0c33c8ed6b6096825e10f67559f886024b2c9394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db70abe6929b6f2b3945a9fb0c33c8ed6b6096825e10f67559f886024b2c9394", kill_on_drop: false }` [INFO] [stdout] db70abe6929b6f2b3945a9fb0c33c8ed6b6096825e10f67559f886024b2c9394 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 59271ee4ab8e6f3f3b0ebd4b3f4dc040bc409647c1d705c35f7c6835569d4bc9 [INFO] running `Command { std: "docker" "start" "-a" "59271ee4ab8e6f3f3b0ebd4b3f4dc040bc409647c1d705c35f7c6835569d4bc9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling miniz_oxide v0.8.2 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling tokio-openssl v0.6.5 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling cc v1.2.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling filepath v0.2.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling actix_derive v0.6.2 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling h2 v0.4.7 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-tls v3.4.0 [INFO] [stderr] Compiling actix v0.13.5 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling hyper v1.5.2 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.12 [INFO] [stderr] Compiling awc v3.5.1 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling rate_my_professor_api_rs v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/features.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::any::type_name; [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 import: `core::cmp::Ord` [INFO] [stdout] --> src/features.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use core::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/features.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / /** [INFO] [stdout] 728 | | * for "variables", it would be the same as writting [INFO] [stdout] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stdout] 730 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 731 | / let body = serde_json::json!({ [INFO] [stdout] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stdout] 733 | | "variables": variables [INFO] [stdout] 734 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/methods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comments_data` [INFO] [stdout] --> src/features.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `would_take_again` [INFO] [stdout] --> src/features.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `school_id` [INFO] [stdout] --> src/features.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:769:34 [INFO] [stdout] | [INFO] [stdout] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:770:28 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/features.rs:773:10 [INFO] [stdout] | [INFO] [stdout] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 811 | let mut file = fs::File::create(fileName).unwrap(); [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/features.rs:874:7 [INFO] [stdout] | [INFO] [stdout] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/methods.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/features.rs:626:13 [INFO] [stdout] | [INFO] [stdout] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/features.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type_of` is never used [INFO] [stdout] --> src/features.rs:792:4 [INFO] [stdout] | [INFO] [stdout] 792 | fn print_type_of(_ : &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `rateMyProfessorApi_rs` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rate_my_professor_api_rs` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `professorID` should have a snake case name [INFO] [stdout] --> src/features.rs:165:40 [INFO] [stdout] | [INFO] [stdout] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stdout] --> src/features.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/features.rs:235:7 [INFO] [stdout] | [INFO] [stdout] 235 | pub Id : String [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/features.rs:770:66 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [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: variable `fileName` should have a snake case name [INFO] [stdout] --> src/features.rs:810:26 [INFO] [stdout] | [INFO] [stdout] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/features.rs:812:7 [INFO] [stdout] | [INFO] [stdout] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CollegeName` should have a snake case name [INFO] [stdout] --> src/methods.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub CollegeName : String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ProfessorName` should have a snake case name [INFO] [stdout] --> src/methods.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub ProfessorName : Option [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_features.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [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 imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_methods.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [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 import: `predicates::prelude::*` [INFO] [stdout] --> src/bin/execute_methods.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude` [INFO] [stdout] --> src/bin/execute_features.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("Queens College"); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/bin/execute_features.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut rate_my_professor_instance_version2 = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas T... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_constructor_methods` is never used [INFO] [stdout] --> src/bin/execute_methods.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | async fn test_constructor_methods() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `Command { std: "docker" "inspect" "59271ee4ab8e6f3f3b0ebd4b3f4dc040bc409647c1d705c35f7c6835569d4bc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59271ee4ab8e6f3f3b0ebd4b3f4dc040bc409647c1d705c35f7c6835569d4bc9", kill_on_drop: false }` [INFO] [stdout] 59271ee4ab8e6f3f3b0ebd4b3f4dc040bc409647c1d705c35f7c6835569d4bc9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e6ee4a4811f3d49ee150b4f7a83a18a23b29d58629a5e3a0456914f6df9bc884 [INFO] running `Command { std: "docker" "start" "-a" "e6ee4a4811f3d49ee150b4f7a83a18a23b29d58629a5e3a0456914f6df9bc884", kill_on_drop: false }` [INFO] [stderr] Compiling rate_my_professor_api_rs v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/features.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::any::type_name; [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 import: `core::cmp::Ord` [INFO] [stdout] --> src/features.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use core::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/features.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / /** [INFO] [stdout] 728 | | * for "variables", it would be the same as writting [INFO] [stdout] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stdout] 730 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 731 | / let body = serde_json::json!({ [INFO] [stdout] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stdout] 733 | | "variables": variables [INFO] [stdout] 734 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/methods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comments_data` [INFO] [stdout] --> src/features.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `would_take_again` [INFO] [stdout] --> src/features.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `school_id` [INFO] [stdout] --> src/features.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:769:34 [INFO] [stdout] | [INFO] [stdout] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:770:28 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/features.rs:773:10 [INFO] [stdout] | [INFO] [stdout] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 811 | let mut file = fs::File::create(fileName).unwrap(); [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/features.rs:874:7 [INFO] [stdout] | [INFO] [stdout] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/methods.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/features.rs:626:13 [INFO] [stdout] | [INFO] [stdout] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/features.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type_of` is never used [INFO] [stdout] --> src/features.rs:792:4 [INFO] [stdout] | [INFO] [stdout] 792 | fn print_type_of(_ : &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `rateMyProfessorApi_rs` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rate_my_professor_api_rs` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `professorID` should have a snake case name [INFO] [stdout] --> src/features.rs:165:40 [INFO] [stdout] | [INFO] [stdout] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stdout] --> src/features.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/features.rs:235:7 [INFO] [stdout] | [INFO] [stdout] 235 | pub Id : String [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/features.rs:770:66 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [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: variable `fileName` should have a snake case name [INFO] [stdout] --> src/features.rs:810:26 [INFO] [stdout] | [INFO] [stdout] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/features.rs:812:7 [INFO] [stdout] | [INFO] [stdout] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CollegeName` should have a snake case name [INFO] [stdout] --> src/methods.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub CollegeName : String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ProfessorName` should have a snake case name [INFO] [stdout] --> src/methods.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub ProfessorName : Option [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_features.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [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 import: `predicates::prelude` [INFO] [stdout] --> src/bin/execute_features.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/bin/execute_features.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name` [INFO] [stdout] --> src/features.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::any::type_name; [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 import: `core::cmp::Ord` [INFO] [stdout] --> src/features.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use core::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/features.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / /** [INFO] [stdout] 728 | | * for "variables", it would be the same as writting [INFO] [stdout] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stdout] 730 | | */ [INFO] [stdout] | |_______^ [INFO] [stdout] 731 | / let body = serde_json::json!({ [INFO] [stdout] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stdout] 733 | | "variables": variables [INFO] [stdout] 734 | | }); [INFO] [stdout] | |_______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `/* */` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `predicates::prelude::*` [INFO] [stdout] --> src/methods.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/bin/execute_methods.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [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 import: `predicates::prelude::*` [INFO] [stdout] --> src/bin/execute_methods.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use predicates::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("Queens College"); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/execute_methods.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let mut rate_my_professor_instance_version2 = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas T... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/execute_methods.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | test_constructor_methods().await; [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 119 | let _ = test_constructor_methods().await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comments_data` [INFO] [stdout] --> src/features.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `would_take_again` [INFO] [stdout] --> src/features.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `school_id` [INFO] [stdout] --> src/features.rs:758:9 [INFO] [stdout] | [INFO] [stdout] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:769:34 [INFO] [stdout] | [INFO] [stdout] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/features.rs:770:28 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/features.rs:773:10 [INFO] [stdout] | [INFO] [stdout] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/features.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 811 | let mut file = fs::File::create(fileName).unwrap(); [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/features.rs:874:7 [INFO] [stdout] | [INFO] [stdout] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_path` [INFO] [stdout] --> src/methods.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `professor_list_returned` [INFO] [stdout] --> src/features.rs:626:13 [INFO] [stdout] | [INFO] [stdout] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/features.rs:610:10 [INFO] [stdout] | [INFO] [stdout] 610 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_type_of` is never used [INFO] [stdout] --> src/features.rs:792:4 [INFO] [stdout] | [INFO] [stdout] 792 | fn print_type_of(_ : &T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `professorID` should have a snake case name [INFO] [stdout] --> src/features.rs:165:40 [INFO] [stdout] | [INFO] [stdout] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stdout] --> src/features.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Id` should have a snake case name [INFO] [stdout] --> src/features.rs:235:7 [INFO] [stdout] | [INFO] [stdout] 235 | pub Id : String [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/features.rs:770:66 [INFO] [stdout] | [INFO] [stdout] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [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: variable `fileName` should have a snake case name [INFO] [stdout] --> src/features.rs:810:26 [INFO] [stdout] | [INFO] [stdout] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> src/features.rs:812:7 [INFO] [stdout] | [INFO] [stdout] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `CollegeName` should have a snake case name [INFO] [stdout] --> src/methods.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub CollegeName : String, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `ProfessorName` should have a snake case name [INFO] [stdout] --> src/methods.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub ProfessorName : Option [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.08s [INFO] running `Command { std: "docker" "inspect" "e6ee4a4811f3d49ee150b4f7a83a18a23b29d58629a5e3a0456914f6df9bc884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6ee4a4811f3d49ee150b4f7a83a18a23b29d58629a5e3a0456914f6df9bc884", kill_on_drop: false }` [INFO] [stdout] e6ee4a4811f3d49ee150b4f7a83a18a23b29d58629a5e3a0456914f6df9bc884 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 14873eb13150be8ee7a580dddd9f0b3b0bf01545d7abc5b555bbaa649975ca44 [INFO] running `Command { std: "docker" "start" "-a" "14873eb13150be8ee7a580dddd9f0b3b0bf01545d7abc5b555bbaa649975ca44", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::any::type_name` [INFO] [stderr] --> src/features.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::any::type_name; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `core::cmp::Ord` [INFO] [stderr] --> src/features.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use core::cmp::Ord; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/features.rs:727:5 [INFO] [stderr] | [INFO] [stderr] 727 | / /** [INFO] [stderr] 728 | | * for "variables", it would be the same as writting [INFO] [stderr] 729 | | * "variables" : "query" : { "text" : school_name } [INFO] [stderr] 730 | | */ [INFO] [stderr] | |_______^ [INFO] [stderr] 731 | / let body = serde_json::json!({ [INFO] [stderr] 732 | | "query": SCHOOL_BODY_QUERY, [INFO] [stderr] 733 | | "variables": variables [INFO] [stderr] 734 | | }); [INFO] [stderr] | |_______- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = help: use `/* */` for a plain comment [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `predicates::prelude::*` [INFO] [stderr] --> src/methods.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use predicates::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `comments_data` [INFO] [stderr] --> src/features.rs:188:9 [INFO] [stderr] | [INFO] [stderr] 188 | let comments_data : String = serde_json::from_str(&comments_subsection[index]["node"]["comment"].to_string())?; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_comments_data` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `would_take_again` [INFO] [stderr] --> src/features.rs:190:9 [INFO] [stderr] | [INFO] [stderr] 190 | let would_take_again : &serde_json::Value = &comments_subsection[index]["node"]["wouldTakeAgain"]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_would_take_again` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:180:7 [INFO] [stderr] | [INFO] [stderr] 180 | let mut comments_data : serde_json::Value = response.json().await.unwrap(); [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:181:7 [INFO] [stderr] | [INFO] [stderr] 181 | let mut comments_subsection = comments_data["data"]["node"]["ratings"]["edges"].clone(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `school_id` [INFO] [stderr] --> src/features.rs:758:9 [INFO] [stderr] | [INFO] [stderr] 758 | let school_id : String = serde_json::from_str(&edges[0]["cursor"].clone().to_string()).unwrap(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_school_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_path` [INFO] [stderr] --> src/features.rs:769:34 [INFO] [stderr] | [INFO] [stderr] 769 | let (all_search_result_file, file_path) = create_file("all_search_result.json").await; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_path` [INFO] [stderr] --> src/features.rs:770:28 [INFO] [stderr] | [INFO] [stderr] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/features.rs:773:10 [INFO] [stderr] | [INFO] [stderr] 773 | for (index, data) in results.clone().into_iter().enumerate() { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:811:7 [INFO] [stderr] | [INFO] [stderr] 811 | let mut file = fs::File::create(fileName).unwrap(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/features.rs:874:7 [INFO] [stderr] | [INFO] [stderr] 874 | let mut professor_list_raw : serde_json::Value = response.json().await?; [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_path` [INFO] [stderr] --> src/methods.rs:249:20 [INFO] [stderr] | [INFO] [stderr] 249 | let (file, file_path) = create_file(file_name).await; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `professor_list_returned` [INFO] [stderr] --> src/features.rs:626:13 [INFO] [stderr] | [INFO] [stderr] 626 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stderr] [INFO] [stderr] warning: function `main` is never used [INFO] [stderr] --> src/features.rs:610:10 [INFO] [stderr] | [INFO] [stderr] 610 | async fn main() -> Result<()> { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `print_type_of` is never used [INFO] [stderr] --> src/features.rs:792:4 [INFO] [stderr] | [INFO] [stderr] 792 | fn print_type_of(_ : &T) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: crate `rateMyProfessorApi_rs` should have a snake case name [INFO] [stderr] | [INFO] [stderr] = help: convert the identifier to snake case: `rate_my_professor_api_rs` [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `professorID` should have a snake case name [INFO] [stderr] --> src/features.rs:165:40 [INFO] [stderr] | [INFO] [stderr] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stderr] [INFO] [stderr] warning: variable `ProfessorCommentsVector` should have a snake case name [INFO] [stderr] --> src/features.rs:183:11 [INFO] [stderr] | [INFO] [stderr] 183 | let mut ProfessorCommentsVector : Vec = Vec::with_capacity(length.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_comments_vector` [INFO] [stderr] [INFO] [stderr] warning: structure field `Id` should have a snake case name [INFO] [stderr] --> src/features.rs:235:7 [INFO] [stderr] | [INFO] [stderr] 235 | pub Id : String [INFO] [stderr] | ^^ help: convert the identifier to snake case (notice the capitalization): `id` [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/features.rs:770:66 [INFO] [stderr] | [INFO] [stderr] 770 | let (school_name_file, file_path) = create_file(&(school_name.clone().to_owned() + ".json")).await; [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `fileName` should have a snake case name [INFO] [stderr] --> src/features.rs:810:26 [INFO] [stderr] | [INFO] [stderr] 810 | pub async fn create_file(fileName : &str) -> (fs::File, PathBuf) { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `file_name` [INFO] [stderr] [INFO] [stderr] warning: variable `filePath` should have a snake case name [INFO] [stderr] --> src/features.rs:812:7 [INFO] [stderr] | [INFO] [stderr] 812 | let filePath = file.path().unwrap(); // Ok("/path/to/file") -> "/path/to/file" [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stderr] [INFO] [stderr] warning: structure field `CollegeName` should have a snake case name [INFO] [stderr] --> src/methods.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub CollegeName : String, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `college_name` [INFO] [stderr] [INFO] [stderr] warning: structure field `ProfessorName` should have a snake case name [INFO] [stderr] --> src/methods.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | pub ProfessorName : Option [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `professor_name` [INFO] [stderr] [INFO] [stderr] warning: variable `professorID` should have a snake case name [INFO] [stderr] --> src/features.rs:165:40 [INFO] [stderr] | [INFO] [stderr] 165 | pub async fn search_professor_comments(professorID : ProfessorId) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `professor_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `rate_my_professor_api_rs` (lib) generated 27 warnings (run `cargo fix --lib -p rate_my_professor_api_rs` to apply 8 suggestions) [INFO] [stderr] warning: `rate_my_professor_api_rs` (lib test) generated 26 warnings (25 duplicates) [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/bin/execute_features.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `predicates::prelude` [INFO] [stderr] --> src/bin/execute_features.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use predicates::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `professor_list_returned` [INFO] [stderr] --> src/bin/execute_features.rs:25:13 [INFO] [stderr] | [INFO] [stderr] 25 | let professor_list_returned = get_professor_list_by_school(school_id).await?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_professor_list_returned` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/bin/execute_methods.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `predicates::prelude::*` [INFO] [stderr] --> src/bin/execute_methods.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use predicates::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/execute_methods.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("Queens College"); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/execute_methods.rs:111:9 [INFO] [stderr] | [INFO] [stderr] 111 | let mut rate_my_professor_instance_version2 = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas T... [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bin/execute_methods.rs:119:5 [INFO] [stderr] | [INFO] [stderr] 119 | test_constructor_methods().await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 119 | let _ = test_constructor_methods().await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `rate_my_professor_api_rs` (bin "test-bin-features" test) generated 3 warnings (run `cargo fix --bin "test-bin-features" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `rate_my_professor_api_rs` (bin "test-bin-methods" test) generated 5 warnings (run `cargo fix --bin "test-bin-methods" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rateMyProfessorApi_rs-14a521ab59ecf66d) [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] [stderr] Running unittests src/bin/execute_features.rs (/opt/rustwide/target/debug/deps/test_bin_features-19a058b8dfe11132) [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] [stderr] Running unittests src/bin/execute_methods.rs (/opt/rustwide/target/debug/deps/test_bin_methods-da06655598fbbe7d) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test_asynchronous_functions ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rateMyProfessorApi_rs [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::construct_college (line 25) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_professor_list (line 355) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_professor_comments (line 290) ... FAILED [INFO] [stdout] test src/methods.rs - methods::main (line 440) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_teacher_summary_and_save (line 215) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_teacher_summary (line 110) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::construct_college_and_professor (line 62) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::construct_college (line 25) stdout ---- [INFO] [stdout] error[E0428]: the name `main` is defined multiple times [INFO] [stdout] --> src/methods.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 12 | fn main() { [INFO] [stdout] | --------- previous definition of the value `main` here [INFO] [stdout] ... [INFO] [stdout] 19 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `main` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `main` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0428`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_professor_list (line 355) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RateMyProfessor` [INFO] [stdout] --> src/methods.rs:356:38 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("CUNY Queens College"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `RateMyProfessor` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rateMyProfessorApi_rs::methods::RateMyProfessor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/methods.rs:357:78 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_methods_rs_355_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let mut rate_my_professor_instance = RateMyProfessor::construct_college("CUNY Queens College"); [INFO] [stdout] 4 | let mut list_of_professors = rate_my_professor_instance.get_professor_list().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_professor_comments (line 290) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rate_my_professor_instance` in this scope [INFO] [stdout] --> src/methods.rs:292:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut professor_comments = rate_my_professor_instance.get_professor_comments().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/methods.rs:292:82 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_methods_rs_290_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | // add the following within the main function from above (or any asynchronous function) [INFO] [stdout] 4 | let mut professor_comments = rate_my_professor_instance.get_professor_comments().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::main (line 440) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RateMyProfessor` [INFO] [stdout] --> src/methods.rs:444:42 [INFO] [stdout] | [INFO] [stdout] 5 | let mut rate_my_professor_instance = RateMyProfessor::construct_college_and_professor("City College of New York", "Douglas Troeger"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `RateMyProfessor` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rateMyProfessorApi_rs::methods::RateMyProfessor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/methods.rs:442:24 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn main() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_teacher_summary_and_save (line 215) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stdout: [INFO] [stdout] RateMyProfessor { [INFO] [stdout] CollegeName: "City College of New York", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "Jie Wei", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (132) panicked at /opt/rustwide/workdir/src/methods.rs:160:43: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: error sending request for url (https://www.ratemyprofessors.com/graphql) [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: client error (Connect) [INFO] [stdout] 1: dns error: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] 2: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error:: for anyhow::Error>::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.95/src/backtrace.rs:27:14 [INFO] [stdout] 1: as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/result.rs:2177:27 [INFO] [stdout] 2: rateMyProfessorApi_rs::features::search_school::{{closure}} [INFO] [stdout] at ./src/features.rs:740:20 [INFO] [stdout] 3: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}} [INFO] [stdout] 4: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary_and_save::{{closure}} [INFO] [stdout] 5: rust_out::main::{{closure}} [INFO] [stdout] 6: tokio::runtime::park::CachedParkThread::block_on::{{closure}} [INFO] [stdout] 7: tokio::runtime::park::CachedParkThread::block_on [INFO] [stdout] 8: tokio::runtime::context::blocking::BlockingRegionGuard::block_on [INFO] [stdout] 9: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}} [INFO] [stdout] 10: tokio::runtime::context::runtime::enter_runtime [INFO] [stdout] 11: tokio::runtime::scheduler::multi_thread::MultiThread::block_on [INFO] [stdout] 12: tokio::runtime::runtime::Runtime::block_on_inner [INFO] [stdout] 13: tokio::runtime::runtime::Runtime::block_on [INFO] [stdout] 14: rust_out::main [INFO] [stdout] 15: core::ops::function::FnOnce::call_once [INFO] [stdout] 16: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] 17: std::rt::lang_start::{{closure}} [INFO] [stdout] 18: core::ops::function::impls:: for &F>::call_once [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 19: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 20: std::panicking::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 21: std::panic::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 22: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:175:24 [INFO] [stdout] 23: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 24: std::panicking::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 25: std::panic::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 26: std::rt::lang_start_internal [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:171:5 [INFO] [stdout] 27: std::rt::lang_start [INFO] [stdout] 28: main [INFO] [stdout] 29: [INFO] [stdout] 30: __libc_start_main [INFO] [stdout] 31: _start [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x62ea49aefb72 - std::backtrace_rs::backtrace::libunwind::trace::h76861be37b31432e [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x62ea49aefb72 - std::backtrace_rs::backtrace::trace_unsynchronized::h58d4003082192c17 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x62ea49aefb72 - std::sys::backtrace::_print_fmt::hfe5857a399620d2a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x62ea49aefb72 - ::fmt::h52160e9da139e442 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x62ea49b01c4f - core::fmt::rt::Argument::fmt::h66fe6fef9ecca14a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x62ea49b01c4f - core::fmt::write::hf09a056a304e021a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x62ea49ac3ce1 - std::io::default_write_fmt::h7567c5950fb0173c [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x62ea49ac3ce1 - std::io::Write::write_fmt::h361c7127187cda65 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x62ea49accc72 - std::sys::backtrace::BacktraceLock::print::h15104dbcf0fd1f14 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x62ea49ad1ddf - std::panicking::default_hook::{{closure}}::h0fa6cd8dbe0dd76b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x62ea49ad1c39 - std::panicking::default_hook::h8d20506cf72e4831 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x62ea49ad2515 - std::panicking::panic_with_hook::h746880a052e02c85 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x62ea49ad22fa - std::panicking::panic_handler::{{closure}}::h14b95830f89d14b3 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:707:13 [INFO] [stdout] 13: 0x62ea49accda9 - std::sys::backtrace::__rust_end_short_backtrace::h7ddaac0e9609a83d [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x62ea49ab85ad - __rustc[76f7e7187978e2f8]::rust_begin_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x62ea49b0a890 - core::panicking::panic_fmt::heb245a301f4395db [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/panicking.rs:78:14 [INFO] [stdout] 16: 0x62ea49b09db6 - core::result::unwrap_failed::h91bd1e1731f928fc [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/result.rs:1855:5 [INFO] [stdout] 17: 0x62ea4964c36e - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::h85ec119bffbf2aa9 [INFO] [stdout] 18: 0x62ea4964d649 - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary_and_save::{{closure}}::hbea8e751ac3b36fd [INFO] [stdout] 19: 0x62ea4965dc53 - rust_out::main::{{closure}}::h66cf353685617034 [INFO] [stdout] 20: 0x62ea49656da6 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h9fc7d6294354c0e9 [INFO] [stdout] 21: 0x62ea49655fa5 - tokio::runtime::park::CachedParkThread::block_on::h406f75ff2ba3a627 [INFO] [stdout] 22: 0x62ea49657feb - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::ha5db82b445256dff [INFO] [stdout] 23: 0x62ea496586c0 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h1cb11ff5a1a7e73d [INFO] [stdout] 24: 0x62ea4965778f - tokio::runtime::context::runtime::enter_runtime::hb3f908e6574f53e9 [INFO] [stdout] 25: 0x62ea49658661 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h8dfe5c865f5ebe47 [INFO] [stdout] 26: 0x62ea496582b9 - tokio::runtime::runtime::Runtime::block_on_inner::h9716bc45afee800b [INFO] [stdout] 27: 0x62ea49658530 - tokio::runtime::runtime::Runtime::block_on::h8f1badda3953d343 [INFO] [stdout] 28: 0x62ea4965d9c3 - rust_out::main::hc4a88c013890f2e4 [INFO] [stdout] 29: 0x62ea4964f723 - core::ops::function::FnOnce::call_once::h1857b5b2204a7d81 [INFO] [stdout] 30: 0x62ea4964e496 - std::sys::backtrace::__rust_begin_short_backtrace::hc243b4f973553350 [INFO] [stdout] 31: 0x62ea4964e479 - std::rt::lang_start::{{closure}}::h460e6a83a4ab7c75 [INFO] [stdout] 32: 0x62ea49ac5890 - core::ops::function::impls:: for &F>::call_once::h92f7271baace0227 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 33: 0x62ea49ac5890 - std::panicking::catch_unwind::do_call::hab80bc7615f9a56f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 34: 0x62ea49ac5890 - std::panicking::catch_unwind::h44920ff533ed11dd [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 35: 0x62ea49ac5890 - std::panic::catch_unwind::hbc4760794652046f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 36: 0x62ea49ac5890 - std::rt::lang_start_internal::{{closure}}::h017b9ee7d9dfccf2 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:175:24 [INFO] [stdout] 37: 0x62ea49ac5890 - std::panicking::catch_unwind::do_call::h5c448dae61c3a22b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 38: 0x62ea49ac5890 - std::panicking::catch_unwind::ha3a2750d16137715 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 39: 0x62ea49ac5890 - std::panic::catch_unwind::ha56344eb931bca1a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x62ea49ac5890 - std::rt::lang_start_internal::h4e6c18fadc4e7470 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:171:5 [INFO] [stdout] 41: 0x62ea4964e461 - std::rt::lang_start::hdd7370fd28d9463c [INFO] [stdout] 42: 0x62ea4965e3c5 - main [INFO] [stdout] 43: 0x7a420fe841ca - [INFO] [stdout] 44: 0x7a420fe8428b - __libc_start_main [INFO] [stdout] 45: 0x62ea4964b705 - _start [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::get_teacher_summary (line 110) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stdout: [INFO] [stdout] Object instance before setter method update : RateMyProfessor { [INFO] [stdout] CollegeName: "Queens College", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] Object instance after setter method update : RateMyProfessor { [INFO] [stdout] CollegeName: "Queens College", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "Ross Greenberg", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (168) panicked at /opt/rustwide/workdir/src/methods.rs:160:43: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: error sending request for url (https://www.ratemyprofessors.com/graphql) [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: client error (Connect) [INFO] [stdout] 1: dns error: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] 2: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error:: for anyhow::Error>::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.95/src/backtrace.rs:27:14 [INFO] [stdout] 1: as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/result.rs:2177:27 [INFO] [stdout] 2: rateMyProfessorApi_rs::features::search_school::{{closure}} [INFO] [stdout] at ./src/features.rs:740:20 [INFO] [stdout] 3: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}} [INFO] [stdout] 4: rust_out::main::{{closure}} [INFO] [stdout] 5: tokio::runtime::park::CachedParkThread::block_on::{{closure}} [INFO] [stdout] 6: tokio::runtime::park::CachedParkThread::block_on [INFO] [stdout] 7: tokio::runtime::context::blocking::BlockingRegionGuard::block_on [INFO] [stdout] 8: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}} [INFO] [stdout] 9: tokio::runtime::context::runtime::enter_runtime [INFO] [stdout] 10: tokio::runtime::scheduler::multi_thread::MultiThread::block_on [INFO] [stdout] 11: tokio::runtime::runtime::Runtime::block_on_inner [INFO] [stdout] 12: tokio::runtime::runtime::Runtime::block_on [INFO] [stdout] 13: rust_out::main [INFO] [stdout] 14: core::ops::function::FnOnce::call_once [INFO] [stdout] 15: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] 16: std::rt::lang_start::{{closure}} [INFO] [stdout] 17: core::ops::function::impls:: for &F>::call_once [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 18: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 19: std::panicking::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 20: std::panic::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 21: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:175:24 [INFO] [stdout] 22: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 23: std::panicking::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 24: std::panic::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 25: std::rt::lang_start_internal [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:171:5 [INFO] [stdout] 26: std::rt::lang_start [INFO] [stdout] 27: main [INFO] [stdout] 28: [INFO] [stdout] 29: __libc_start_main [INFO] [stdout] 30: _start [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5d7a0054f2f2 - std::backtrace_rs::backtrace::libunwind::trace::h76861be37b31432e [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5d7a0054f2f2 - std::backtrace_rs::backtrace::trace_unsynchronized::h58d4003082192c17 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5d7a0054f2f2 - std::sys::backtrace::_print_fmt::hfe5857a399620d2a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5d7a0054f2f2 - ::fmt::h52160e9da139e442 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5d7a005613cf - core::fmt::rt::Argument::fmt::h66fe6fef9ecca14a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5d7a005613cf - core::fmt::write::hf09a056a304e021a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5d7a00523461 - std::io::default_write_fmt::h7567c5950fb0173c [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5d7a00523461 - std::io::Write::write_fmt::h361c7127187cda65 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5d7a0052c3f2 - std::sys::backtrace::BacktraceLock::print::h15104dbcf0fd1f14 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5d7a0053155f - std::panicking::default_hook::{{closure}}::h0fa6cd8dbe0dd76b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5d7a005313b9 - std::panicking::default_hook::h8d20506cf72e4831 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x5d7a00531c95 - std::panicking::panic_with_hook::h746880a052e02c85 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x5d7a00531a7a - std::panicking::panic_handler::{{closure}}::h14b95830f89d14b3 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:707:13 [INFO] [stdout] 13: 0x5d7a0052c529 - std::sys::backtrace::__rust_end_short_backtrace::h7ddaac0e9609a83d [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x5d7a00517d2d - __rustc[76f7e7187978e2f8]::rust_begin_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x5d7a0056a010 - core::panicking::panic_fmt::heb245a301f4395db [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/panicking.rs:78:14 [INFO] [stdout] 16: 0x5d7a00569536 - core::result::unwrap_failed::h91bd1e1731f928fc [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/result.rs:1855:5 [INFO] [stdout] 17: 0x5d7a000acc4e - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::h85ec119bffbf2aa9 [INFO] [stdout] 18: 0x5d7a000bcf6b - rust_out::main::{{closure}}::h66cf353685617034 [INFO] [stdout] 19: 0x5d7a000b6136 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h9fc7d6294354c0e9 [INFO] [stdout] 20: 0x5d7a000b5335 - tokio::runtime::park::CachedParkThread::block_on::h406f75ff2ba3a627 [INFO] [stdout] 21: 0x5d7a000b737b - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::ha5db82b445256dff [INFO] [stdout] 22: 0x5d7a000b7a50 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h1cb11ff5a1a7e73d [INFO] [stdout] 23: 0x5d7a000b6b1f - tokio::runtime::context::runtime::enter_runtime::hb3f908e6574f53e9 [INFO] [stdout] 24: 0x5d7a000b79f1 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h8dfe5c865f5ebe47 [INFO] [stdout] 25: 0x5d7a000b7649 - tokio::runtime::runtime::Runtime::block_on_inner::h9716bc45afee800b [INFO] [stdout] 26: 0x5d7a000b78c0 - tokio::runtime::runtime::Runtime::block_on::h8f1badda3953d343 [INFO] [stdout] 27: 0x5d7a000bcc40 - rust_out::main::hc4a88c013890f2e4 [INFO] [stdout] 28: 0x5d7a000af083 - core::ops::function::FnOnce::call_once::h1857b5b2204a7d81 [INFO] [stdout] 29: 0x5d7a000addf6 - std::sys::backtrace::__rust_begin_short_backtrace::hc243b4f973553350 [INFO] [stdout] 30: 0x5d7a000addd9 - std::rt::lang_start::{{closure}}::h460e6a83a4ab7c75 [INFO] [stdout] 31: 0x5d7a00525010 - core::ops::function::impls:: for &F>::call_once::h92f7271baace0227 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 32: 0x5d7a00525010 - std::panicking::catch_unwind::do_call::hab80bc7615f9a56f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 33: 0x5d7a00525010 - std::panicking::catch_unwind::h44920ff533ed11dd [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 34: 0x5d7a00525010 - std::panic::catch_unwind::hbc4760794652046f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x5d7a00525010 - std::rt::lang_start_internal::{{closure}}::h017b9ee7d9dfccf2 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:175:24 [INFO] [stdout] 36: 0x5d7a00525010 - std::panicking::catch_unwind::do_call::h5c448dae61c3a22b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x5d7a00525010 - std::panicking::catch_unwind::ha3a2750d16137715 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x5d7a00525010 - std::panic::catch_unwind::ha56344eb931bca1a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x5d7a00525010 - std::rt::lang_start_internal::h4e6c18fadc4e7470 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:171:5 [INFO] [stdout] 40: 0x5d7a000addc1 - std::rt::lang_start::hdd7370fd28d9463c [INFO] [stdout] 41: 0x5d7a000bda05 - main [INFO] [stdout] 42: 0x7a72511e11ca - [INFO] [stdout] 43: 0x7a72511e128b - __libc_start_main [INFO] [stdout] 44: 0x5d7a000ac295 - _start [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/methods.rs - methods::RateMyProfessor::construct_college_and_professor (line 62) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stdout: [INFO] [stdout] newly instantiated object : RateMyProfessor { [INFO] [stdout] CollegeName: "City College of New York", [INFO] [stdout] ProfessorName: Some( [INFO] [stdout] "Douglas Troeger", [INFO] [stdout] ), [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Err( [INFO] [stdout] reqwest::Error { [INFO] [stdout] kind: Request, [INFO] [stdout] url: "https://www.ratemyprofessors.com/graphql", [INFO] [stdout] source: hyper_util::client::legacy::Error( [INFO] [stdout] Connect, [INFO] [stdout] ConnectError( [INFO] [stdout] "dns error", [INFO] [stdout] Custom { [INFO] [stdout] kind: Uncategorized, [INFO] [stdout] error: "failed to lookup address information: Temporary failure in name resolution", [INFO] [stdout] }, [INFO] [stdout] ), [INFO] [stdout] ), [INFO] [stdout] }, [INFO] [stdout] ) [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (150) panicked at /opt/rustwide/workdir/src/methods.rs:160:43: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: error sending request for url (https://www.ratemyprofessors.com/graphql) [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: client error (Connect) [INFO] [stdout] 1: dns error: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] 2: failed to lookup address information: Temporary failure in name resolution [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: anyhow::error:: for anyhow::Error>::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.95/src/backtrace.rs:27:14 [INFO] [stdout] 1: as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/result.rs:2177:27 [INFO] [stdout] 2: rateMyProfessorApi_rs::features::search_school::{{closure}} [INFO] [stdout] at ./src/features.rs:740:20 [INFO] [stdout] 3: rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}} [INFO] [stdout] 4: rust_out::main::{{closure}} [INFO] [stdout] 5: tokio::runtime::park::CachedParkThread::block_on::{{closure}} [INFO] [stdout] 6: tokio::runtime::park::CachedParkThread::block_on [INFO] [stdout] 7: tokio::runtime::context::blocking::BlockingRegionGuard::block_on [INFO] [stdout] 8: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}} [INFO] [stdout] 9: tokio::runtime::context::runtime::enter_runtime [INFO] [stdout] 10: tokio::runtime::scheduler::multi_thread::MultiThread::block_on [INFO] [stdout] 11: tokio::runtime::runtime::Runtime::block_on_inner [INFO] [stdout] 12: tokio::runtime::runtime::Runtime::block_on [INFO] [stdout] 13: rust_out::main [INFO] [stdout] 14: core::ops::function::FnOnce::call_once [INFO] [stdout] 15: std::sys::backtrace::__rust_begin_short_backtrace [INFO] [stdout] 16: std::rt::lang_start::{{closure}} [INFO] [stdout] 17: core::ops::function::impls:: for &F>::call_once [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 18: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 19: std::panicking::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 20: std::panic::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 21: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:175:24 [INFO] [stdout] 22: std::panicking::catch_unwind::do_call [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 23: std::panicking::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 24: std::panic::catch_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 25: std::rt::lang_start_internal [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:171:5 [INFO] [stdout] 26: std::rt::lang_start [INFO] [stdout] 27: main [INFO] [stdout] 28: [INFO] [stdout] 29: __libc_start_main [INFO] [stdout] 30: _start [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x606ed4b143b2 - std::backtrace_rs::backtrace::libunwind::trace::h76861be37b31432e [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x606ed4b143b2 - std::backtrace_rs::backtrace::trace_unsynchronized::h58d4003082192c17 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x606ed4b143b2 - std::sys::backtrace::_print_fmt::hfe5857a399620d2a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x606ed4b143b2 - ::fmt::h52160e9da139e442 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x606ed4b2648f - core::fmt::rt::Argument::fmt::h66fe6fef9ecca14a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x606ed4b2648f - core::fmt::write::hf09a056a304e021a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x606ed4ae8521 - std::io::default_write_fmt::h7567c5950fb0173c [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x606ed4ae8521 - std::io::Write::write_fmt::h361c7127187cda65 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x606ed4af14b2 - std::sys::backtrace::BacktraceLock::print::h15104dbcf0fd1f14 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x606ed4af661f - std::panicking::default_hook::{{closure}}::h0fa6cd8dbe0dd76b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x606ed4af6479 - std::panicking::default_hook::h8d20506cf72e4831 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x606ed4af6d55 - std::panicking::panic_with_hook::h746880a052e02c85 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x606ed4af6b3a - std::panicking::panic_handler::{{closure}}::h14b95830f89d14b3 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:707:13 [INFO] [stdout] 13: 0x606ed4af15e9 - std::sys::backtrace::__rust_end_short_backtrace::h7ddaac0e9609a83d [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x606ed4adcded - __rustc[76f7e7187978e2f8]::rust_begin_unwind [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:698:5 [INFO] [stdout] 15: 0x606ed4b2f0d0 - core::panicking::panic_fmt::heb245a301f4395db [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/panicking.rs:78:14 [INFO] [stdout] 16: 0x606ed4b2e5f6 - core::result::unwrap_failed::h91bd1e1731f928fc [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/result.rs:1855:5 [INFO] [stdout] 17: 0x606ed467165e - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::h85ec119bffbf2aa9 [INFO] [stdout] 18: 0x606ed4682409 - rust_out::main::{{closure}}::h66cf353685617034 [INFO] [stdout] 19: 0x606ed467af06 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h9fc7d6294354c0e9 [INFO] [stdout] 20: 0x606ed467a105 - tokio::runtime::park::CachedParkThread::block_on::h406f75ff2ba3a627 [INFO] [stdout] 21: 0x606ed467c14b - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::ha5db82b445256dff [INFO] [stdout] 22: 0x606ed467c820 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h1cb11ff5a1a7e73d [INFO] [stdout] 23: 0x606ed467b8ef - tokio::runtime::context::runtime::enter_runtime::hb3f908e6574f53e9 [INFO] [stdout] 24: 0x606ed467c7c1 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h8dfe5c865f5ebe47 [INFO] [stdout] 25: 0x606ed467c419 - tokio::runtime::runtime::Runtime::block_on_inner::h9716bc45afee800b [INFO] [stdout] 26: 0x606ed467c690 - tokio::runtime::runtime::Runtime::block_on::h8f1badda3953d343 [INFO] [stdout] 27: 0x606ed4681f90 - rust_out::main::hc4a88c013890f2e4 [INFO] [stdout] 28: 0x606ed4673e03 - core::ops::function::FnOnce::call_once::h1857b5b2204a7d81 [INFO] [stdout] 29: 0x606ed4672806 - std::sys::backtrace::__rust_begin_short_backtrace::hc243b4f973553350 [INFO] [stdout] 30: 0x606ed46727e9 - std::rt::lang_start::{{closure}}::h460e6a83a4ab7c75 [INFO] [stdout] 31: 0x606ed4aea0d0 - core::ops::function::impls:: for &F>::call_once::h92f7271baace0227 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 32: 0x606ed4aea0d0 - std::panicking::catch_unwind::do_call::hab80bc7615f9a56f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 33: 0x606ed4aea0d0 - std::panicking::catch_unwind::h44920ff533ed11dd [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 34: 0x606ed4aea0d0 - std::panic::catch_unwind::hbc4760794652046f [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x606ed4aea0d0 - std::rt::lang_start_internal::{{closure}}::h017b9ee7d9dfccf2 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:175:24 [INFO] [stdout] 36: 0x606ed4aea0d0 - std::panicking::catch_unwind::do_call::h5c448dae61c3a22b [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x606ed4aea0d0 - std::panicking::catch_unwind::ha3a2750d16137715 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x606ed4aea0d0 - std::panic::catch_unwind::ha56344eb931bca1a [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x606ed4aea0d0 - std::rt::lang_start_internal::h4e6c18fadc4e7470 [INFO] [stdout] at /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/std/src/rt.rs:171:5 [INFO] [stdout] 40: 0x606ed46727d1 - std::rt::lang_start::hdd7370fd28d9463c [INFO] [stdout] 41: 0x606ed4682b35 - main [INFO] [stdout] 42: 0x72a032fdb1ca - [INFO] [stdout] 43: 0x72a032fdb28b - __libc_start_main [INFO] [stdout] 44: 0x606ed4670a65 - _start [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::construct_college (line 25) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::construct_college_and_professor (line 62) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_professor_comments (line 290) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_professor_list (line 355) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_teacher_summary (line 110) [INFO] [stdout] src/methods.rs - methods::RateMyProfessor::get_teacher_summary_and_save (line 215) [INFO] [stdout] src/methods.rs - methods::main (line 440) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.27s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "14873eb13150be8ee7a580dddd9f0b3b0bf01545d7abc5b555bbaa649975ca44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14873eb13150be8ee7a580dddd9f0b3b0bf01545d7abc5b555bbaa649975ca44", kill_on_drop: false }` [INFO] [stdout] 14873eb13150be8ee7a580dddd9f0b3b0bf01545d7abc5b555bbaa649975ca44