[INFO] cloning repository https://github.com/kush-bot/Browser_engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kush-bot/Browser_engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-bot%2FBrowser_engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-bot%2FBrowser_engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 625ce2275c98db283631a2ade2ce9c652d7d6470 [INFO] testing kush-bot/Browser_engine/625ce2275c98db283631a2ade2ce9c652d7d6470 against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkush-bot%2FBrowser_engine" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kush-bot/Browser_engine [INFO] finished tweaking git repo https://github.com/kush-bot/Browser_engine [INFO] tweaked toml for git repo https://github.com/kush-bot/Browser_engine written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kush-bot/Browser_engine on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kush-bot/Browser_engine 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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded winnow v0.6.21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c36d9f6476047d9b0d71ac52a5b381f8a44bfc71fdd13c23540803cdf56e5c5 [INFO] running `Command { std: "docker" "start" "-a" "1c36d9f6476047d9b0d71ac52a5b381f8a44bfc71fdd13c23540803cdf56e5c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c36d9f6476047d9b0d71ac52a5b381f8a44bfc71fdd13c23540803cdf56e5c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c36d9f6476047d9b0d71ac52a5b381f8a44bfc71fdd13c23540803cdf56e5c5", kill_on_drop: false }` [INFO] [stdout] 1c36d9f6476047d9b0d71ac52a5b381f8a44bfc71fdd13c23540803cdf56e5c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8dbb277c684f4f8b0e9f360bcdd656408f928619c319a5be0216d8521dae7666 [INFO] running `Command { std: "docker" "start" "-a" "8dbb277c684f4f8b0e9f360bcdd656408f928619c319a5be0216d8521dae7666", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling syn v2.0.94 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling winnow v0.6.21 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> src/lib.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 39 | / if switch{ [INFO] [stdout] 40 | | / NewsArticle{ [INFO] [stdout] 41 | | | headlines:String::from("this is headline"), [INFO] [stdout] 42 | | | location:String::from("somewhere near here"), [INFO] [stdout] 43 | | | author:String::from("someone"), [INFO] [stdout] 44 | | | content:String::from("this is content") [INFO] [stdout] 45 | | | } [INFO] [stdout] | | |_________- expected because of this [INFO] [stdout] ... | [INFO] [stdout] 48 | | / Tweet{ [INFO] [stdout] 49 | | | username:String::from("theTwitter"), [INFO] [stdout] 50 | | | content:String::from("the content"), [INFO] [stdout] 51 | | | retweet:false, [INFO] [stdout] 52 | | | replay:false, [INFO] [stdout] 53 | | | } [INFO] [stdout] | | |_________^ expected `NewsArticle`, found `Tweet` [INFO] [stdout] 54 | | } [INFO] [stdout] | |_______- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] help: you could change the return type to be a boxed trait object [INFO] [stdout] | [INFO] [stdout] 38 - pub fn return_summerizable(switch:bool)->impl Summary{ [INFO] [stdout] 38 + pub fn return_summerizable(switch:bool)->Box{ [INFO] [stdout] | [INFO] [stdout] help: if you change the return type to expect trait objects, box the returned expressions [INFO] [stdout] | [INFO] [stdout] 40 ~ Box::new(NewsArticle{ [INFO] [stdout] 41 | headlines:String::from("this is headline"), [INFO] [stdout] ... [INFO] [stdout] 44 | content:String::from("this is content") [INFO] [stdout] 45 ~ }) [INFO] [stdout] 46 | } [INFO] [stdout] 47 | else{ [INFO] [stdout] 48 ~ Box::new(Tweet{ [INFO] [stdout] 49 | username:String::from("theTwitter"), [INFO] [stdout] ... [INFO] [stdout] 52 | replay:false, [INFO] [stdout] 53 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `app` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "8dbb277c684f4f8b0e9f360bcdd656408f928619c319a5be0216d8521dae7666", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dbb277c684f4f8b0e9f360bcdd656408f928619c319a5be0216d8521dae7666", kill_on_drop: false }` [INFO] [stdout] 8dbb277c684f4f8b0e9f360bcdd656408f928619c319a5be0216d8521dae7666