[INFO] cloning repository https://github.com/MohammedEssehemy/rocket-pastebin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MohammedEssehemy/rocket-pastebin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMohammedEssehemy%2Frocket-pastebin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMohammedEssehemy%2Frocket-pastebin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af8273b07c92134e2e082e305fcb77384a2f097d [INFO] checking MohammedEssehemy/rocket-pastebin against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMohammedEssehemy%2Frocket-pastebin" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MohammedEssehemy/rocket-pastebin on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MohammedEssehemy/rocket-pastebin [INFO] finished tweaking git repo https://github.com/MohammedEssehemy/rocket-pastebin [INFO] tweaked toml for git repo https://github.com/MohammedEssehemy/rocket-pastebin written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MohammedEssehemy/rocket-pastebin 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking MohammedEssehemy/rocket-pastebin against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMohammedEssehemy%2Frocket-pastebin" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MohammedEssehemy/rocket-pastebin on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MohammedEssehemy/rocket-pastebin [INFO] finished tweaking git repo https://github.com/MohammedEssehemy/rocket-pastebin [INFO] tweaked toml for git repo https://github.com/MohammedEssehemy/rocket-pastebin written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MohammedEssehemy/rocket-pastebin 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking MohammedEssehemy/rocket-pastebin against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMohammedEssehemy%2Frocket-pastebin" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MohammedEssehemy/rocket-pastebin on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MohammedEssehemy/rocket-pastebin [INFO] finished tweaking git repo https://github.com/MohammedEssehemy/rocket-pastebin [INFO] tweaked toml for git repo https://github.com/MohammedEssehemy/rocket-pastebin written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MohammedEssehemy/rocket-pastebin 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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 rocket_dyn_templates v0.1.0-rc.3 [INFO] [stderr] Downloaded syn v2.0.35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4785629b639aaa67abe644f495ebd19cadf082aa5a1d9981ea11a162f73b9b73 [INFO] running `Command { std: "docker" "start" "-a" "4785629b639aaa67abe644f495ebd19cadf082aa5a1d9981ea11a162f73b9b73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4785629b639aaa67abe644f495ebd19cadf082aa5a1d9981ea11a162f73b9b73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4785629b639aaa67abe644f495ebd19cadf082aa5a1d9981ea11a162f73b9b73", kill_on_drop: false }` [INFO] [stdout] 4785629b639aaa67abe644f495ebd19cadf082aa5a1d9981ea11a162f73b9b73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5245a84c2182d775ef00a07b403c73e835fe261e6377819abd7e45b0472f390 [INFO] running `Command { std: "docker" "start" "-a" "c5245a84c2182d775ef00a07b403c73e835fe261e6377819abd7e45b0472f390", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling yansi v1.0.0-rc.1 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling time-core v0.1.1 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling time-macros v0.2.14 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling ref-cast v1.0.20 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling uncased v0.9.9 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling deranged v0.3.8 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling rustix v0.38.13 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling syn v2.0.35 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling socket2 v0.5.4 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking winnow v0.5.15 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling time v0.3.28 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Checking linux-raw-sys v0.4.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling figment v0.10.10 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling state v0.5.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Compiling rocket v0.5.0-rc.3 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking filetime v0.2.22 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking normpath v1.1.1 [INFO] [stderr] Checking notify v5.2.0 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling pear_codegen v0.2.7 [INFO] [stderr] Compiling ref-cast-impl v1.0.20 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking pear v0.2.7 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Compiling pest v2.7.3 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.3 [INFO] [stderr] Compiling pest_meta v2.7.3 [INFO] [stderr] Compiling pest_generator v2.7.3 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.3 [INFO] [stderr] Compiling pest_derive v2.7.3 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking serde_spanned v0.6.3 [INFO] [stderr] Checking toml_datetime v0.6.3 [INFO] [stderr] Checking ubyte v0.10.3 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking handlebars v4.4.0 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking rocket_dyn_templates v0.1.0-rc.3 [INFO] [stderr] Checking rocket-pastebin v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/paste_id.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rocket_pastebin` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] * src/paste_id.rs [INFO] [stderr] * src/routes.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `index` [INFO] [stderr] --> src/routes.rs:64:13 [INFO] [stderr] | [INFO] [stderr] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stderr] | ^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `favicon` [INFO] [stderr] --> src/routes.rs:64:20 [INFO] [stderr] | [INFO] [stderr] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stderr] | ^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `upload` [INFO] [stderr] --> src/routes.rs:64:29 [INFO] [stderr] | [INFO] [stderr] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stderr] | ^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `get_paste` [INFO] [stderr] --> src/routes.rs:64:37 [INFO] [stderr] | [INFO] [stderr] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stderr] | ^^^^^^^^^ not a struct, variant or union type [INFO] [stdout] warning: unused import: `favicon` [INFO] [stdout] --> src/routes.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | pub async fn favicon() -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused import: `index` [INFO] [stdout] --> src/routes.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn index() -> Template { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0574]: expected struct, variant or union type, found function `delete_paste` [INFO] [stdout] warning: unused import: `upload` [INFO] [stdout] --> src/routes.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | pub async fn upload(paste: Data<'_>) -> Result<(Status, String), Debug> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/routes.rs:64:48 [INFO] [stdout] warning: unused import: `get_paste` [INFO] [stdout] --> src/routes.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | pub async fn get_paste(id: PasteId<'_>) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stderr] | ^^^^^^^^^^^^ not a struct, variant or union type [INFO] [stderr] [INFO] [stderr] warning: the item `rand` is imported redundantly [INFO] [stderr] --> src/paste_id.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | use rand::{self, Rng}; [INFO] [stderr] | ^^^^ the item `rand` is already defined by prelude [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `delete`, `get`, `post` [INFO] [stderr] --> src/routes.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | delete, get, [INFO] [stderr] | ^^^^^^ ^^^ [INFO] [stderr] 8 | http::Status, [INFO] [stderr] 9 | post, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0574`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stdout] warning: unused import: `delete_paste` [INFO] [stdout] --> src/routes.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn delete_paste(id: PasteId<'_>) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `super::routes::rocket_uri_macro_delete_paste`, `super::routes::rocket_uri_macro_get_paste`, `super::routes::rocket_uri_macro_index`, `super::routes::rocket_uri_macro_upload` [INFO] [stdout] --> src/tests.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | rocket_uri_macro_delete_paste, rocket_uri_macro_get_paste, rocket_uri_macro_index, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ no `rocket_uri_macro_index` in `routes` [INFO] [stdout] | | | [INFO] [stdout] | | no `rocket_uri_macro_get_paste` in `routes` [INFO] [stdout] | no `rocket_uri_macro_delete_paste` in `routes` [INFO] [stdout] 6 | rocket_uri_macro_upload, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no `rocket_uri_macro_upload` in `routes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found function `index` [INFO] [stdout] --> src/routes.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stdout] | ^^^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found function `favicon` [INFO] [stdout] --> src/routes.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stdout] | ^^^^^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found function `upload` [INFO] [stdout] --> src/routes.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stdout] | ^^^^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found function `get_paste` [INFO] [stdout] --> src/routes.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stdout] | ^^^^^^^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found function `delete_paste` [INFO] [stdout] --> src/routes.rs:64:48 [INFO] [stdout] | [INFO] [stdout] 64 | routes![index, favicon, upload, get_paste, delete_paste] [INFO] [stdout] | ^^^^^^^^^^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `rand` is imported redundantly [INFO] [stdout] --> src/paste_id.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use rand::{self, Rng}; [INFO] [stdout] | ^^^^ the item `rand` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `get`, `post` [INFO] [stdout] --> src/routes.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | delete, get, [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] 8 | http::Status, [INFO] [stdout] 9 | post, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0574. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket-pastebin` (bin "rocket-pastebin" test) due to 7 previous errors; 2 warnings emitted [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" "c5245a84c2182d775ef00a07b403c73e835fe261e6377819abd7e45b0472f390", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5245a84c2182d775ef00a07b403c73e835fe261e6377819abd7e45b0472f390", kill_on_drop: false }` [INFO] [stdout] c5245a84c2182d775ef00a07b403c73e835fe261e6377819abd7e45b0472f390