[INFO] fetching crate rate_my_professor_api_rs 0.1.5... [INFO] testing rate_my_professor_api_rs-0.1.5 against try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] extracting crate rate_my_professor_api_rs 0.1.5 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate rate_my_professor_api_rs 0.1.5 on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-tc2/source/Cargo.toml [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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4fefe0db9746342a008f2293ee4817182445e315debeae4328b15efb3421e6c [INFO] running `Command { std: "docker" "start" "-a" "a4fefe0db9746342a008f2293ee4817182445e315debeae4328b15efb3421e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4fefe0db9746342a008f2293ee4817182445e315debeae4328b15efb3421e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4fefe0db9746342a008f2293ee4817182445e315debeae4328b15efb3421e6c", kill_on_drop: false }` [INFO] [stdout] a4fefe0db9746342a008f2293ee4817182445e315debeae4328b15efb3421e6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e0653cbef69c23328e2bad9d07db32e7b331bb55367fee4366c486668376766a [INFO] running `Command { std: "docker" "start" "-a" "e0653cbef69c23328e2bad9d07db32e7b331bb55367fee4366c486668376766a", 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 cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling miniz_oxide v0.8.2 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling cc v1.2.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling cpufeatures v0.2.16 [INFO] [stderr] Compiling tokio-openssl v0.6.5 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.14 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling filepath v0.2.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [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 zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [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 actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [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 zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [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 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 actix-server v2.5.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [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 idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper v1.5.2 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling awc v3.5.1 [INFO] [stderr] Compiling reqwest v0.12.12 [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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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_methods.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` 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 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)]` 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: 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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 24s [INFO] running `Command { std: "docker" "inspect" "e0653cbef69c23328e2bad9d07db32e7b331bb55367fee4366c486668376766a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0653cbef69c23328e2bad9d07db32e7b331bb55367fee4366c486668376766a", kill_on_drop: false }` [INFO] [stdout] e0653cbef69c23328e2bad9d07db32e7b331bb55367fee4366c486668376766a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35d7f1d444368a6d0a3493c56fa658e562bc84862c4404a4ac25e90b7815b1ed [INFO] running `Command { std: "docker" "start" "-a" "35d7f1d444368a6d0a3493c56fa658e562bc84862c4404a4ac25e90b7815b1ed", kill_on_drop: false }` [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)]` 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] [stderr] Compiling rate_my_professor_api_rs v0.1.5 (/opt/rustwide/workdir) [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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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 1.95s [INFO] running `Command { std: "docker" "inspect" "35d7f1d444368a6d0a3493c56fa658e562bc84862c4404a4ac25e90b7815b1ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35d7f1d444368a6d0a3493c56fa658e562bc84862c4404a4ac25e90b7815b1ed", kill_on_drop: false }` [INFO] [stdout] 35d7f1d444368a6d0a3493c56fa658e562bc84862c4404a4ac25e90b7815b1ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 97eea9f0f9d89b0a615cbba406ef9b92c02fa64e416ecc583687b770ea948f54 [INFO] running `Command { std: "docker" "start" "-a" "97eea9f0f9d89b0a615cbba406ef9b92c02fa64e416ecc583687b770ea948f54", 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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_methods.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` 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)]` 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)]` 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: 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)]` 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)]` on by default [INFO] [stderr] [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] 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] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rateMyProfessorApi_rs-83304bb673715ee2) [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-f04f3b56b7b9a923) [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-8dbe79b599ac9894) [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_comments (line 290) ... FAILED [INFO] [stdout] test src/methods.rs - methods::main (line 440) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_professor_list (line 355) ... FAILED [INFO] [stdout] test src/methods.rs - methods::RateMyProfessor::get_teacher_summary (line 110) ... 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::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_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_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_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' 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/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:2050: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/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:284:13 [INFO] [stdout] 18: std::panicking::try::do_call [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 19: std::panicking::try [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 20: std::panic::catch_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 21: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:168:24 [INFO] [stdout] 22: std::panicking::try::do_call [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 23: std::panicking::try [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 24: std::panic::catch_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 25: std::rt::lang_start_internal [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:164: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: 0x576cd233c992 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x576cd233c992 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x576cd233c992 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x576cd233c992 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x576cd2360de3 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x576cd2360de3 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x576cd2339253 - std::io::default_write_fmt::hcc7659f8be9b70b5 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x576cd2339253 - std::io::Write::write_fmt::hdd01b95af54f8b44 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x576cd233c7e2 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x576cd233da82 - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x576cd233d885 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:327:9 [INFO] [stdout] 11: 0x576cd233e4a2 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:833:13 [INFO] [stdout] 12: 0x576cd233e22a - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 13: 0x576cd233ce99 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 14: 0x576cd233debd - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 15: 0x576cd235ea40 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 16: 0x576cd235ef06 - core::result::unwrap_failed::hc1dbbc53e2530a6b [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:1732:5 [INFO] [stdout] 17: 0x576cd1e86ec9 - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::hb5989a2826e6b0df [INFO] [stdout] 18: 0x576cd1e9cb24 - rust_out::main::{{closure}}::h73dadce30a5a0764 [INFO] [stdout] 19: 0x576cd1e937b5 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::hf0b9cf2dd6d7095a [INFO] [stdout] 20: 0x576cd1e93155 - tokio::runtime::park::CachedParkThread::block_on::hb1c85a402ddc2072 [INFO] [stdout] 21: 0x576cd1e94bbb - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h83265a3484662b7c [INFO] [stdout] 22: 0x576cd1e952c0 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::hf95fc4c4a76488cf [INFO] [stdout] 23: 0x576cd1e93f47 - tokio::runtime::context::runtime::enter_runtime::h4787403e1872d92f [INFO] [stdout] 24: 0x576cd1e95221 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::ha7ed91ba9bc434a4 [INFO] [stdout] 25: 0x576cd1e94e79 - tokio::runtime::runtime::Runtime::block_on_inner::hfb5b27c8076dc7fe [INFO] [stdout] 26: 0x576cd1e950f0 - tokio::runtime::runtime::Runtime::block_on::h46a898def5b66311 [INFO] [stdout] 27: 0x576cd1e9c7d0 - rust_out::main::hfb31077dd299e374 [INFO] [stdout] 28: 0x576cd1e8bdc3 - core::ops::function::FnOnce::call_once::h1e62f2471a433aeb [INFO] [stdout] 29: 0x576cd1e8a466 - std::sys::backtrace::__rust_begin_short_backtrace::hfd42c75150fd4958 [INFO] [stdout] 30: 0x576cd1e8a449 - std::rt::lang_start::{{closure}}::hde34371a637cc8d8 [INFO] [stdout] 31: 0x576cd2332504 - core::ops::function::impls:: for &F>::call_once::hc4394f720a441605 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:284:13 [INFO] [stdout] 32: 0x576cd2332504 - std::panicking::try::do_call::hcfbf653ae9dff9d3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 33: 0x576cd2332504 - std::panicking::try::h282e00ddfab06dd3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 34: 0x576cd2332504 - std::panic::catch_unwind::h1a4f7c5f603feec0 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x576cd2332504 - std::rt::lang_start_internal::{{closure}}::h74ae7472f42599f3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:168:24 [INFO] [stdout] 36: 0x576cd2332504 - std::panicking::try::do_call::ha8c33ea9dc720bf4 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 37: 0x576cd2332504 - std::panicking::try::h445539db8a61fee5 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 38: 0x576cd2332504 - std::panic::catch_unwind::ha832476451864184 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x576cd2332504 - std::rt::lang_start_internal::h2cddb2630d6593cf [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:164:5 [INFO] [stdout] 40: 0x576cd1e8a431 - std::rt::lang_start::h5725c5057760cd74 [INFO] [stdout] 41: 0x576cd1e9d115 - main [INFO] [stdout] 42: 0x7534ac0a31ca - [INFO] [stdout] 43: 0x7534ac0a328b - __libc_start_main [INFO] [stdout] 44: 0x576cd1e7e675 - _start [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [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' 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/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:2050: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/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:284:13 [INFO] [stdout] 19: std::panicking::try::do_call [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 20: std::panicking::try [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 21: std::panic::catch_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 22: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:168:24 [INFO] [stdout] 23: std::panicking::try::do_call [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 24: std::panicking::try [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 25: std::panic::catch_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 26: std::rt::lang_start_internal [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:164: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: 0x606f66db83d2 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x606f66db83d2 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x606f66db83d2 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x606f66db83d2 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x606f66ddc823 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x606f66ddc823 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x606f66db4c93 - std::io::default_write_fmt::hcc7659f8be9b70b5 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x606f66db4c93 - std::io::Write::write_fmt::hdd01b95af54f8b44 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x606f66db8222 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x606f66db94c2 - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x606f66db92c5 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:327:9 [INFO] [stdout] 11: 0x606f66db9ee2 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:833:13 [INFO] [stdout] 12: 0x606f66db9c6a - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 13: 0x606f66db88d9 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 14: 0x606f66db98fd - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 15: 0x606f66dda480 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 16: 0x606f66dda946 - core::result::unwrap_failed::hc1dbbc53e2530a6b [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:1732:5 [INFO] [stdout] 17: 0x606f669015f9 - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::hb5989a2826e6b0df [INFO] [stdout] 18: 0x606f66902909 - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary_and_save::{{closure}}::hd8ea956699a8ba09 [INFO] [stdout] 19: 0x606f66918a42 - rust_out::main::{{closure}}::h73dadce30a5a0764 [INFO] [stdout] 20: 0x606f6690f5e5 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::hf0b9cf2dd6d7095a [INFO] [stdout] 21: 0x606f6690ef85 - tokio::runtime::park::CachedParkThread::block_on::hb1c85a402ddc2072 [INFO] [stdout] 22: 0x606f669109eb - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h83265a3484662b7c [INFO] [stdout] 23: 0x606f669110f0 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::hf95fc4c4a76488cf [INFO] [stdout] 24: 0x606f6690fd77 - tokio::runtime::context::runtime::enter_runtime::h4787403e1872d92f [INFO] [stdout] 25: 0x606f66911051 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::ha7ed91ba9bc434a4 [INFO] [stdout] 26: 0x606f66910ca9 - tokio::runtime::runtime::Runtime::block_on_inner::hfb5b27c8076dc7fe [INFO] [stdout] 27: 0x606f66910f20 - tokio::runtime::runtime::Runtime::block_on::h46a898def5b66311 [INFO] [stdout] 28: 0x606f66918793 - rust_out::main::hfb31077dd299e374 [INFO] [stdout] 29: 0x606f66907633 - core::ops::function::FnOnce::call_once::h1e62f2471a433aeb [INFO] [stdout] 30: 0x606f66905cd6 - std::sys::backtrace::__rust_begin_short_backtrace::hfd42c75150fd4958 [INFO] [stdout] 31: 0x606f66905cb9 - std::rt::lang_start::{{closure}}::hde34371a637cc8d8 [INFO] [stdout] 32: 0x606f66dadf44 - core::ops::function::impls:: for &F>::call_once::hc4394f720a441605 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:284:13 [INFO] [stdout] 33: 0x606f66dadf44 - std::panicking::try::do_call::hcfbf653ae9dff9d3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 34: 0x606f66dadf44 - std::panicking::try::h282e00ddfab06dd3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 35: 0x606f66dadf44 - std::panic::catch_unwind::h1a4f7c5f603feec0 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 36: 0x606f66dadf44 - std::rt::lang_start_internal::{{closure}}::h74ae7472f42599f3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:168:24 [INFO] [stdout] 37: 0x606f66dadf44 - std::panicking::try::do_call::ha8c33ea9dc720bf4 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x606f66dadf44 - std::panicking::try::h445539db8a61fee5 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x606f66dadf44 - std::panic::catch_unwind::ha832476451864184 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x606f66dadf44 - std::rt::lang_start_internal::h2cddb2630d6593cf [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:164:5 [INFO] [stdout] 41: 0x606f66905ca1 - std::rt::lang_start::h5725c5057760cd74 [INFO] [stdout] 42: 0x606f66918c95 - main [INFO] [stdout] 43: 0x7f0ea36041ca - [INFO] [stdout] 44: 0x7f0ea360428b - __libc_start_main [INFO] [stdout] 45: 0x606f668f8af5 - _start [INFO] [stdout] 46: 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' 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/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:2050: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/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:284:13 [INFO] [stdout] 18: std::panicking::try::do_call [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 19: std::panicking::try [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 20: std::panic::catch_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 21: std::rt::lang_start_internal::{{closure}} [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:168:24 [INFO] [stdout] 22: std::panicking::try::do_call [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 23: std::panicking::try [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 24: std::panic::catch_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 25: std::rt::lang_start_internal [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:164: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: 0x6142890dea52 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x6142890dea52 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x6142890dea52 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x6142890dea52 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x614289102ea3 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x614289102ea3 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x6142890db313 - std::io::default_write_fmt::hcc7659f8be9b70b5 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x6142890db313 - std::io::Write::write_fmt::hdd01b95af54f8b44 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x6142890de8a2 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x6142890dfb42 - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x6142890df945 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:327:9 [INFO] [stdout] 11: 0x6142890e0562 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:833:13 [INFO] [stdout] 12: 0x6142890e02ea - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 13: 0x6142890def59 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 14: 0x6142890dff7d - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 15: 0x614289100b00 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 16: 0x614289100fc6 - core::result::unwrap_failed::hc1dbbc53e2530a6b [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/result.rs:1732:5 [INFO] [stdout] 17: 0x614288c288f9 - rateMyProfessorApi_rs::methods::RateMyProfessor::get_teacher_summary::{{closure}}::hb5989a2826e6b0df [INFO] [stdout] 18: 0x614288c3efca - rust_out::main::{{closure}}::h73dadce30a5a0764 [INFO] [stdout] 19: 0x614288c355a5 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::hf0b9cf2dd6d7095a [INFO] [stdout] 20: 0x614288c34f45 - tokio::runtime::park::CachedParkThread::block_on::hb1c85a402ddc2072 [INFO] [stdout] 21: 0x614288c369ab - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h83265a3484662b7c [INFO] [stdout] 22: 0x614288c370b0 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::hf95fc4c4a76488cf [INFO] [stdout] 23: 0x614288c35d37 - tokio::runtime::context::runtime::enter_runtime::h4787403e1872d92f [INFO] [stdout] 24: 0x614288c37011 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::ha7ed91ba9bc434a4 [INFO] [stdout] 25: 0x614288c36c69 - tokio::runtime::runtime::Runtime::block_on_inner::hfb5b27c8076dc7fe [INFO] [stdout] 26: 0x614288c36ee0 - tokio::runtime::runtime::Runtime::block_on::h46a898def5b66311 [INFO] [stdout] 27: 0x614288c3eb20 - rust_out::main::hfb31077dd299e374 [INFO] [stdout] 28: 0x614288c2db63 - core::ops::function::FnOnce::call_once::h1e62f2471a433aeb [INFO] [stdout] 29: 0x614288c2be96 - std::sys::backtrace::__rust_begin_short_backtrace::hfd42c75150fd4958 [INFO] [stdout] 30: 0x614288c2be79 - std::rt::lang_start::{{closure}}::hde34371a637cc8d8 [INFO] [stdout] 31: 0x6142890d45c4 - core::ops::function::impls:: for &F>::call_once::hc4394f720a441605 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:284:13 [INFO] [stdout] 32: 0x6142890d45c4 - std::panicking::try::do_call::hcfbf653ae9dff9d3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 33: 0x6142890d45c4 - std::panicking::try::h282e00ddfab06dd3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 34: 0x6142890d45c4 - std::panic::catch_unwind::h1a4f7c5f603feec0 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x6142890d45c4 - std::rt::lang_start_internal::{{closure}}::h74ae7472f42599f3 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:168:24 [INFO] [stdout] 36: 0x6142890d45c4 - std::panicking::try::do_call::ha8c33ea9dc720bf4 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 37: 0x6142890d45c4 - std::panicking::try::h445539db8a61fee5 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 38: 0x6142890d45c4 - std::panic::catch_unwind::ha832476451864184 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x6142890d45c4 - std::rt::lang_start_internal::h2cddb2630d6593cf [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/rt.rs:164:5 [INFO] [stdout] 40: 0x614288c2be61 - std::rt::lang_start::h5725c5057760cd74 [INFO] [stdout] 41: 0x614288c3f245 - main [INFO] [stdout] 42: 0x78f4898ac1ca - [INFO] [stdout] 43: 0x78f4898ac28b - __libc_start_main [INFO] [stdout] 44: 0x614288c1fe55 - _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.15s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "97eea9f0f9d89b0a615cbba406ef9b92c02fa64e416ecc583687b770ea948f54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97eea9f0f9d89b0a615cbba406ef9b92c02fa64e416ecc583687b770ea948f54", kill_on_drop: false }` [INFO] [stdout] 97eea9f0f9d89b0a615cbba406ef9b92c02fa64e416ecc583687b770ea948f54