[INFO] cloning repository https://github.com/CerulanLumina/whereisclass [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CerulanLumina/whereisclass" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCerulanLumina%2Fwhereisclass", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCerulanLumina%2Fwhereisclass'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a986dcd2048cb913b0e1e45c968888650d88931c [INFO] checking CerulanLumina/whereisclass against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCerulanLumina%2Fwhereisclass" "/workspace/builds/worker-119/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-119/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CerulanLumina/whereisclass on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CerulanLumina/whereisclass [INFO] finished tweaking git repo https://github.com/CerulanLumina/whereisclass [INFO] tweaked toml for git repo https://github.com/CerulanLumina/whereisclass written to /workspace/builds/worker-119/source/Cargo.toml [INFO] crate git repo https://github.com/CerulanLumina/whereisclass already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded selectors v0.21.0 [INFO] [stderr] Downloaded postgres-types v0.1.1 [INFO] [stderr] Downloaded tokio-util v0.3.0 [INFO] [stderr] Downloaded markup5ever v0.9.0 [INFO] [stderr] Downloaded postgres-protocol v0.5.0 [INFO] [stderr] Downloaded postgres v0.17.2 [INFO] [stderr] Downloaded tokio-postgres v0.5.3 [INFO] [stderr] Downloaded scraper v0.11.0 [INFO] [stderr] Downloaded xmlparser v0.10.0 [INFO] [stderr] Downloaded html5ever v0.24.1 [INFO] [stderr] Downloaded roxmltree v0.7.1 [INFO] [stderr] Downloaded cssparser v0.25.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fe514814e1b931a24d46b2cfb1580fae37a5c00eb8b28a7cb855f98fb51125c [INFO] running `Command { std: "docker" "start" "-a" "2fe514814e1b931a24d46b2cfb1580fae37a5c00eb8b28a7cb855f98fb51125c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fe514814e1b931a24d46b2cfb1580fae37a5c00eb8b28a7cb855f98fb51125c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fe514814e1b931a24d46b2cfb1580fae37a5c00eb8b28a7cb855f98fb51125c", kill_on_drop: false }` [INFO] [stdout] 2fe514814e1b931a24d46b2cfb1580fae37a5c00eb8b28a7cb855f98fb51125c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-119/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a1a33519d4fe01c74cd18267f7da3cb411b817675b8854ef5f468a84cdeacf6 [INFO] running `Command { std: "docker" "start" "-a" "8a1a33519d4fe01c74cd18267f7da3cb411b817675b8854ef5f468a84cdeacf6", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] serde v1.0.101 (as host dependency): derive, serde_derive [INFO] [stderr] [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling string_cache_shared v0.3.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Checking futures-io v0.3.4 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking siphasher v0.3.1 [INFO] [stderr] Compiling procedural-masquerade v0.1.6 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking dtoa v0.4.4 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking thin-slice v0.1.1 [INFO] [stderr] Checking regex-syntax v0.6.12 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking xmlparser v0.10.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ego-tree v0.6.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking futf v0.1.4 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking bimap v0.4.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Checking roxmltree v0.7.1 [INFO] [stderr] Checking dtoa-short v0.3.2 [INFO] [stderr] Checking phf_shared v0.8.0 [INFO] [stderr] Checking phf_shared v0.7.24 [INFO] [stderr] Checking servo_arc v0.1.1 [INFO] [stderr] Checking lock_api v0.3.3 [INFO] [stderr] Checking tendril v0.4.1 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking parking_lot_core v0.7.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking phf v0.7.24 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Checking parking_lot v0.10.0 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking regex v1.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking sha2 v0.8.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tokio v0.2.13 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling string_cache_codegen v0.4.4 [INFO] [stderr] Compiling selectors v0.21.0 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Compiling string_cache v0.7.5 [INFO] [stderr] Checking postgres-protocol v0.5.0 [INFO] [stderr] Checking postgres-types v0.1.1 [INFO] [stderr] Checking tokio-util v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling cssparser v0.25.9 [INFO] [stderr] Compiling html5ever v0.24.1 [INFO] [stderr] Compiling cssparser-macros v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.24 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking tokio-postgres v0.5.3 [INFO] [stderr] Checking postgres v0.17.2 [INFO] [stderr] Compiling serde_json v1.0.41 [INFO] [stderr] Compiling markup5ever v0.9.0 [INFO] [stderr] Checking scraper v0.11.0 [INFO] [stderr] Checking whereisclass v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/xml_parser.rs:209:24 [INFO] [stdout] | [INFO] [stdout] 209 | impl From for CourseDBError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/xml_parser.rs:210:29 [INFO] [stdout] | [INFO] [stdout] 210 | fn from(_: std::option::NoneError) -> Self { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 10 | / fn parse_day(day: Node) -> Result { [INFO] [stdout] 11 | | let day = day.text()?.into(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 12 | | Ok(day) [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 15 | / fn parse_period(period_node: Node, strict: bool) -> Result { [INFO] [stdout] 16 | | let time_regex = regex::Regex::new(r#"^\d+$"#).unwrap(); [INFO] [stdout] 17 | | let time_start = period_node.attribute("start")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 18 | | let time_end = period_node.attribute("end")?; [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(period) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 15 | / fn parse_period(period_node: Node, strict: bool) -> Result { [INFO] [stdout] 16 | | let time_regex = regex::Regex::new(r#"^\d+$"#).unwrap(); [INFO] [stdout] 17 | | let time_start = period_node.attribute("start")?; [INFO] [stdout] 18 | | let time_end = period_node.attribute("end")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(period) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:30:57 [INFO] [stdout] | [INFO] [stdout] 15 | / fn parse_period(period_node: Node, strict: bool) -> Result { [INFO] [stdout] 16 | | let time_regex = regex::Regex::new(r#"^\d+$"#).unwrap(); [INFO] [stdout] 17 | | let time_start = period_node.attribute("start")?; [INFO] [stdout] 18 | | let time_end = period_node.attribute("end")?; [INFO] [stdout] ... | [INFO] [stdout] 30 | | let instructor = period_node.attribute("instructor")?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(period) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 63 | / fn parse_note(note: Node) -> Result { [INFO] [stdout] 64 | | let note = note.text()?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 65 | | Ok(note) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 68 | / fn parse_section(section_node: Node, strict: bool) -> Result { [INFO] [stdout] 69 | | let crn = section_node.attribute("crn")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 70 | | let crn = u32::from_str(crn)?; [INFO] [stdout] 71 | | let num = section_node.attribute("num")?; [INFO] [stdout] ... | [INFO] [stdout] 120 | | Ok(section) [INFO] [stdout] 121 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:71:44 [INFO] [stdout] | [INFO] [stdout] 68 | / fn parse_section(section_node: Node, strict: bool) -> Result { [INFO] [stdout] 69 | | let crn = section_node.attribute("crn")?; [INFO] [stdout] 70 | | let crn = u32::from_str(crn)?; [INFO] [stdout] 71 | | let num = section_node.attribute("num")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 120 | | Ok(section) [INFO] [stdout] 121 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:125:45 [INFO] [stdout] | [INFO] [stdout] 124 | / fn parse_course(course_node: Node, strict: bool) -> Result { [INFO] [stdout] 125 | | let name = course_node.attribute("name")?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 126 | | let dept = course_node.attribute("dept")?.to_string(); [INFO] [stdout] 127 | | let num = course_node.attribute("num")?; [INFO] [stdout] ... | [INFO] [stdout] 159 | | Ok(course) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:126:45 [INFO] [stdout] | [INFO] [stdout] 124 | / fn parse_course(course_node: Node, strict: bool) -> Result { [INFO] [stdout] 125 | | let name = course_node.attribute("name")?.to_string(); [INFO] [stdout] 126 | | let dept = course_node.attribute("dept")?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 127 | | let num = course_node.attribute("num")?; [INFO] [stdout] ... | [INFO] [stdout] 159 | | Ok(course) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:127:43 [INFO] [stdout] | [INFO] [stdout] 124 | / fn parse_course(course_node: Node, strict: bool) -> Result { [INFO] [stdout] 125 | | let name = course_node.attribute("name")?.to_string(); [INFO] [stdout] 126 | | let dept = course_node.attribute("dept")?.to_string(); [INFO] [stdout] 127 | | let num = course_node.attribute("num")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | Ok(course) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `whereisclass` due to 13 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/xml_parser.rs:209:24 [INFO] [stdout] | [INFO] [stdout] 209 | impl From for CourseDBError { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/xml_parser.rs:210:29 [INFO] [stdout] | [INFO] [stdout] 210 | fn from(_: std::option::NoneError) -> Self { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 10 | / fn parse_day(day: Node) -> Result { [INFO] [stdout] 11 | | let day = day.text()?.into(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 12 | | Ok(day) [INFO] [stdout] 13 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 15 | / fn parse_period(period_node: Node, strict: bool) -> Result { [INFO] [stdout] 16 | | let time_regex = regex::Regex::new(r#"^\d+$"#).unwrap(); [INFO] [stdout] 17 | | let time_start = period_node.attribute("start")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 18 | | let time_end = period_node.attribute("end")?; [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(period) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 15 | / fn parse_period(period_node: Node, strict: bool) -> Result { [INFO] [stdout] 16 | | let time_regex = regex::Regex::new(r#"^\d+$"#).unwrap(); [INFO] [stdout] 17 | | let time_start = period_node.attribute("start")?; [INFO] [stdout] 18 | | let time_end = period_node.attribute("end")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(period) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:30:57 [INFO] [stdout] | [INFO] [stdout] 15 | / fn parse_period(period_node: Node, strict: bool) -> Result { [INFO] [stdout] 16 | | let time_regex = regex::Regex::new(r#"^\d+$"#).unwrap(); [INFO] [stdout] 17 | | let time_start = period_node.attribute("start")?; [INFO] [stdout] 18 | | let time_end = period_node.attribute("end")?; [INFO] [stdout] ... | [INFO] [stdout] 30 | | let instructor = period_node.attribute("instructor")?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(period) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 63 | / fn parse_note(note: Node) -> Result { [INFO] [stdout] 64 | | let note = note.text()?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 65 | | Ok(note) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 68 | / fn parse_section(section_node: Node, strict: bool) -> Result { [INFO] [stdout] 69 | | let crn = section_node.attribute("crn")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 70 | | let crn = u32::from_str(crn)?; [INFO] [stdout] 71 | | let num = section_node.attribute("num")?; [INFO] [stdout] ... | [INFO] [stdout] 120 | | Ok(section) [INFO] [stdout] 121 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:71:44 [INFO] [stdout] | [INFO] [stdout] 68 | / fn parse_section(section_node: Node, strict: bool) -> Result { [INFO] [stdout] 69 | | let crn = section_node.attribute("crn")?; [INFO] [stdout] 70 | | let crn = u32::from_str(crn)?; [INFO] [stdout] 71 | | let num = section_node.attribute("num")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 120 | | Ok(section) [INFO] [stdout] 121 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:125:45 [INFO] [stdout] | [INFO] [stdout] 124 | / fn parse_course(course_node: Node, strict: bool) -> Result { [INFO] [stdout] 125 | | let name = course_node.attribute("name")?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 126 | | let dept = course_node.attribute("dept")?.to_string(); [INFO] [stdout] 127 | | let num = course_node.attribute("num")?; [INFO] [stdout] ... | [INFO] [stdout] 159 | | Ok(course) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:126:45 [INFO] [stdout] | [INFO] [stdout] 124 | / fn parse_course(course_node: Node, strict: bool) -> Result { [INFO] [stdout] 125 | | let name = course_node.attribute("name")?.to_string(); [INFO] [stdout] 126 | | let dept = course_node.attribute("dept")?.to_string(); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 127 | | let num = course_node.attribute("num")?; [INFO] [stdout] ... | [INFO] [stdout] 159 | | Ok(course) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/xml_parser.rs:127:43 [INFO] [stdout] | [INFO] [stdout] 124 | / fn parse_course(course_node: Node, strict: bool) -> Result { [INFO] [stdout] 125 | | let name = course_node.attribute("name")?.to_string(); [INFO] [stdout] 126 | | let dept = course_node.attribute("dept")?.to_string(); [INFO] [stdout] 127 | | let num = course_node.attribute("num")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 159 | | Ok(course) [INFO] [stdout] 160 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "8a1a33519d4fe01c74cd18267f7da3cb411b817675b8854ef5f468a84cdeacf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a1a33519d4fe01c74cd18267f7da3cb411b817675b8854ef5f468a84cdeacf6", kill_on_drop: false }` [INFO] [stdout] 8a1a33519d4fe01c74cd18267f7da3cb411b817675b8854ef5f468a84cdeacf6