[INFO] cloning repository https://github.com/jianglu/deepsource-cases [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jianglu/deepsource-cases" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjianglu%2Fdeepsource-cases", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjianglu%2Fdeepsource-cases'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b9e9f85ed9de8a639b04de53c6d6daad953cda6 [INFO] checking jianglu/deepsource-cases against try#15e8bc6907ab2b3623cb52acc726f4787458df64 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjianglu%2Fdeepsource-cases" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jianglu/deepsource-cases on toolchain 15e8bc6907ab2b3623cb52acc726f4787458df64 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jianglu/deepsource-cases [INFO] finished tweaking git repo https://github.com/jianglu/deepsource-cases [INFO] tweaked toml for git repo https://github.com/jianglu/deepsource-cases written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jianglu/deepsource-cases 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" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "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 crossbeam-epoch v0.9.13 [INFO] [stderr] Downloaded rsa v0.7.2 [INFO] [stderr] Downloaded crypto v0.4.0 [INFO] [stderr] Downloaded sqlite3-sys v0.14.0 [INFO] [stderr] Downloaded sqlite v0.30.3 [INFO] [stderr] Downloaded serde v1.0.150 [INFO] [stderr] Downloaded rayon-core v1.10.1 [INFO] [stderr] Downloaded num-bigint-dig v0.8.2 [INFO] [stderr] Downloaded libm v0.2.6 [INFO] [stderr] Downloaded rayon v1.6.1 [INFO] [stderr] Downloaded sqlite3-src v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b524d29efa5ae520be9ebe1d585560a2bad6d9e3070f4657a9c301a01b6852f [INFO] running `Command { std: "docker" "start" "-a" "4b524d29efa5ae520be9ebe1d585560a2bad6d9e3070f4657a9c301a01b6852f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b524d29efa5ae520be9ebe1d585560a2bad6d9e3070f4657a9c301a01b6852f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b524d29efa5ae520be9ebe1d585560a2bad6d9e3070f4657a9c301a01b6852f", kill_on_drop: false }` [INFO] [stdout] 4b524d29efa5ae520be9ebe1d585560a2bad6d9e3070f4657a9c301a01b6852f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+15e8bc6907ab2b3623cb52acc726f4787458df64" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb41a85deae885380d58f3ac5a3f72d9b01c82b524c813b17a70eedee3d2f783 [INFO] running `Command { std: "docker" "start" "-a" "fb41a85deae885380d58f3ac5a3f72d9b01c82b524c813b17a70eedee3d2f783", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling libm v0.2.6 [INFO] [stderr] Checking const-oid v0.9.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Checking zeroize v1.5.7 [INFO] [stderr] Checking base64ct v1.5.3 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling rayon-core v1.10.1 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Compiling num-bigint-dig v0.8.2 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling time-macros v0.2.6 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking pem-rfc7468 v0.6.0 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling cookie v0.16.1 [INFO] [stderr] Checking der v0.6.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Compiling sqlite3-src v0.4.0 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking num_cpus v1.14.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking sqlite3-sys v0.14.0 [INFO] [stderr] Checking time v0.3.17 [INFO] [stderr] Checking sqlite v0.30.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking spki v0.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking pkcs8 v0.9.0 [INFO] [stderr] Checking rayon v1.6.1 [INFO] [stderr] Checking pkcs1 v0.4.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.6 [INFO] [stderr] Checking crypto v0.4.0 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking rsa v0.7.2 [INFO] [stderr] Checking deepsource-cases v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> examples/rs-s1013.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let foo = x as *const [i32] as *const [u8]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown character escape: `.` [INFO] [stdout] --> examples/rs-s1008.rs:38:43 [INFO] [stdout] | [INFO] [stdout] 38 | let re = Regex::new("https?://www\.deepsource\.com/").unwrap(); [INFO] [stdout] | ^ unknown character escape [INFO] [stdout] | [INFO] [stdout] = help: for more information, visit [INFO] [stdout] help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal [INFO] [stdout] | [INFO] [stdout] 38 | let re = Regex::new(r"https?://www\.deepsource\.com/").unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown character escape: `.` [INFO] [stdout] --> examples/rs-s1008.rs:38:55 [INFO] [stdout] | [INFO] [stdout] 38 | let re = Regex::new("https?://www\.deepsource\.com/").unwrap(); [INFO] [stdout] | ^ unknown character escape [INFO] [stdout] | [INFO] [stdout] = help: for more information, visit [INFO] [stdout] help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal [INFO] [stdout] | [INFO] [stdout] 38 | let re = Regex::new(r"https?://www\.deepsource\.com/").unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `c` [INFO] [stdout] --> examples/rs-a1002.rs:35:55 [INFO] [stdout] | [INFO] [stdout] 35 | let mut c = Cookie::new("data", "sensitive value") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 36 | c.set_secure(false); [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> examples/rs-s1006.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let listener = TcpListener::bind("0.0.0.0:80").unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `error_type_id`: this is memory-unsafe to override in user code [INFO] [stdout] --> examples/rs_s1001.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | / fn type_id(&self) -> TypeId { [INFO] [stdout] 7 | | // Enable safe casting to `String` by accident. [INFO] [stdout] 8 | | TypeId::of::() [INFO] [stdout] 9 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #60784 for more information [INFO] [stdout] = help: add `#![feature(error_type_id)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rs_s1000` [INFO] [stdout] --> examples/rs-s1000.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | // CVE-2018-25008 [INFO] [stdout] | ^ consider adding a `main` function to `examples/rs-s1000.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> examples/rs-s1011.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let foo = &x as *const i32 as *mut i32; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `deepsource-cases` (example "rs-s1008") due to 2 previous errors [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/rs-a1006.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | DroppedTwice(Box), [INFO] [stdout] | ------------ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MyEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 - DroppedTwice(Box), [INFO] [stdout] 3 + DroppedTwice(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> examples/rs-s1012.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let foo = x as *const [i32] as *const i32; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `deepsource-cases` (example "rs-s1000") due to 1 previous error [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> examples/hardcode_secrets.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let key = "12345azan+/ryGUuk"; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `deepsource-cases` (example "rs-a1002") due to 1 previous error [INFO] [stdout] error[E0432]: unresolved imports `crypto::digest`, `crypto::sha1` [INFO] [stdout] --> examples/rs-s1004.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | use crypto::{digest::Digest, sha1::Sha1}; [INFO] [stdout] | ^^^^^^ ^^^^ could not find `sha1` in `crypto` [INFO] [stdout] | | [INFO] [stdout] | could not find `digest` in `crypto` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/crypto-0.4.0/src/lib.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub use digest; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: the item is gated behind the `digest` feature [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/crypto-0.4.0/src/lib.rs:54:7 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(feature = "digest")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `MyType` doesn't implement `std::fmt::Display` [INFO] [stdout] --> examples/rs_s1001.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | impl Error for MyType { [INFO] [stdout] | ^^^^^^ `MyType` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `MyType` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] note: required by a bound in `std::error::Error` [INFO] [stdout] --> /rustc/15e8bc6907ab2b3623cb52acc726f4787458df64/library/core/src/error.rs:53:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: unused bitwise operation that must be used [INFO] [stdout] --> examples/rs-s1007.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | 2 ^ 32; [INFO] [stdout] | ^^^^^^ the bitwise operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = 2 ^ 32; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `MyType` doesn't implement `Debug` [INFO] [stdout] --> examples/rs_s1001.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | impl Error for MyType { [INFO] [stdout] | ^^^^^^ `MyType` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `MyType` [INFO] [stdout] = note: add `#[derive(Debug)]` to `MyType` or manually `impl Debug for MyType` [INFO] [stdout] note: required by a bound in `std::error::Error` [INFO] [stdout] --> /rustc/15e8bc6907ab2b3623cb52acc726f4787458df64/library/core/src/error.rs:53:1 [INFO] [stdout] help: consider annotating `MyType` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 3 + #[derive(Debug)] [INFO] [stdout] 4 | struct MyType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0050]: method `type_id` has 1 parameter but the declaration in trait `std::error::Error::type_id` has 2 [INFO] [stdout] --> examples/rs_s1001.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | fn type_id(&self) -> TypeId { [INFO] [stdout] | ^^^^^ expected 2 parameters, found 1 [INFO] [stdout] | [INFO] [stdout] = note: `type_id` from trait: `fn(&Self, core::error::private::Internal) -> TypeId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0050, E0277, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0050`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priv_key` [INFO] [stdout] --> examples/rs-s1005.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let priv_key = RsaPrivateKey::new(&mut rng, 1024); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priv_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `deepsource-cases` (example "rs-s1004") due to 1 previous error [INFO] [stderr] error: could not compile `deepsource-cases` (example "rs_s1001") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "fb41a85deae885380d58f3ac5a3f72d9b01c82b524c813b17a70eedee3d2f783", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb41a85deae885380d58f3ac5a3f72d9b01c82b524c813b17a70eedee3d2f783", kill_on_drop: false }` [INFO] [stdout] fb41a85deae885380d58f3ac5a3f72d9b01c82b524c813b17a70eedee3d2f783