[INFO] fetching crate torch-web 0.2.8... [INFO] building torch-web-0.2.8 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate torch-web 0.2.8 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate torch-web 0.2.8 [INFO] finished tweaking crates.io crate torch-web 0.2.8 [INFO] tweaked toml for crates.io crate torch-web 0.2.8 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate torch-web 0.2.8 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate torch-web 0.2.8 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded metrics-macros v0.7.1 [INFO] [stderr] Downloaded metrics v0.21.1 [INFO] [stderr] Downloaded redis v0.26.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 408f79a444bd93a5d381192f34ed29f6f222fcb36c01f55bcc7d8c4cf04a3ab3 [INFO] running `Command { std: "docker" "start" "-a" "408f79a444bd93a5d381192f34ed29f6f222fcb36c01f55bcc7d8c4cf04a3ab3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "408f79a444bd93a5d381192f34ed29f6f222fcb36c01f55bcc7d8c4cf04a3ab3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "408f79a444bd93a5d381192f34ed29f6f222fcb36c01f55bcc7d8c4cf04a3ab3", kill_on_drop: false }` [INFO] [stdout] 408f79a444bd93a5d381192f34ed29f6f222fcb36c01f55bcc7d8c4cf04a3ab3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15f1f673474cbe89677215a0803a3aaa8a65b1fd2d1d101fd676ba86dd207d6f [INFO] running `Command { std: "docker" "start" "-a" "15f1f673474cbe89677215a0803a3aaa8a65b1fd2d1d101fd676ba86dd207d6f", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling torch-web v0.2.8 (/opt/rustwide/workdir) [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.15 [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/security/encryption.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::distributions::Alphanumeric; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/security/encryption.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sha2` [INFO] [stdout] --> src/security/encryption.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use sha2::{Sha256, Digest}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `sha2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `sha2`, use `cargo add sha2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `base64` [INFO] [stdout] --> src/security/encryption.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use base64::{Engine as _, engine::general_purpose}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `base64` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `base64` [INFO] [stdout] --> src/security/encryption.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use base64::{Engine as _, engine::general_purpose}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `base64` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `base64`, use `cargo add base64` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `once_cell` [INFO] [stdout] --> src/security/validation.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `once_cell` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `once_cell`, use `cargo add once_cell` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `once_cell` [INFO] [stdout] --> src/security/csrf.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `once_cell` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `once_cell`, use `cargo add once_cell` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `once_cell` [INFO] [stdout] --> src/security/rate_limit.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `once_cell` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `once_cell`, use `cargo add once_cell` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `regex` [INFO] [stdout] --> src/security/validation.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use regex::Regex; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `regex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `regex`, use `cargo add regex` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] --> src/security/mod.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | #[derive(Debug, thiserror::Error)] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:227:7 [INFO] [stdout] | [INFO] [stdout] 227 | #[error("Invalid input: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:230:7 [INFO] [stdout] | [INFO] [stdout] 230 | #[error("CSRF token mismatch")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:233:7 [INFO] [stdout] | [INFO] [stdout] 233 | #[error("Rate limit exceeded")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:236:7 [INFO] [stdout] | [INFO] [stdout] 236 | #[error("Authentication failed: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:239:7 [INFO] [stdout] | [INFO] [stdout] 239 | #[error("Authorization failed: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:242:7 [INFO] [stdout] | [INFO] [stdout] 242 | #[error("Password does not meet complexity requirements")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:245:7 [INFO] [stdout] | [INFO] [stdout] 245 | #[error("File upload not allowed: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | #[error("Request too large")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:251:7 [INFO] [stdout] | [INFO] [stdout] 251 | #[error("Session expired")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> src/security/mod.rs:254:7 [INFO] [stdout] | [INFO] [stdout] 254 | #[error("Encryption error: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/security/validation.rs:166:32 [INFO] [stdout] | [INFO] [stdout] 166 | if pattern.is_match(input) { [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/security/validation.rs:173:32 [INFO] [stdout] | [INFO] [stdout] 173 | if pattern.is_match(input) { [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/security/validation.rs:205:30 [INFO] [stdout] | [INFO] [stdout] 205 | result = pattern.replace_all(&result, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/security/validation.rs:212:30 [INFO] [stdout] | [INFO] [stdout] 212 | result = pattern.replace_all(&result, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hex` [INFO] [stdout] --> src/security/encryption.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | hex::encode(bytes) [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hex` [INFO] [stdout] --> src/security/encryption.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | hex::encode(hasher.finalize()) [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hex` [INFO] [stdout] --> src/security/encryption.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | hex::encode(hasher.finalize()) [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hex` [INFO] [stdout] --> src/security/encryption.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | hex::encode(hasher.finalize()) [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `torch-web` (lib) due to 28 previous errors [INFO] running `Command { std: "docker" "inspect" "15f1f673474cbe89677215a0803a3aaa8a65b1fd2d1d101fd676ba86dd207d6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15f1f673474cbe89677215a0803a3aaa8a65b1fd2d1d101fd676ba86dd207d6f", kill_on_drop: false }` [INFO] [stdout] 15f1f673474cbe89677215a0803a3aaa8a65b1fd2d1d101fd676ba86dd207d6f