[INFO] fetching crate sanitizer 0.1.7... [INFO] testing sanitizer-0.1.7 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate sanitizer 0.1.7 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate sanitizer 0.1.7 [INFO] finished tweaking crates.io crate sanitizer 0.1.7 [INFO] tweaked toml for crates.io crate sanitizer 0.1.7 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sanitizer 0.1.7 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sanitizer 0.1.7 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sanitizer_macros v0.2.2 [INFO] [stderr] Downloaded phonenumber v0.3.7+8.13.52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 638171620a8d2547ff215d17fe543eb6882ce330d4978e40f23a589a7c019479 [INFO] running `Command { std: "docker" "start" "-a" "638171620a8d2547ff215d17fe543eb6882ce330d4978e40f23a589a7c019479", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "638171620a8d2547ff215d17fe543eb6882ce330d4978e40f23a589a7c019479", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "638171620a8d2547ff215d17fe543eb6882ce330d4978e40f23a589a7c019479", kill_on_drop: false }` [INFO] [stdout] 638171620a8d2547ff215d17fe543eb6882ce330d4978e40f23a589a7c019479 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 65732f1e990951d81508278cfa14939c1b7d9841b6e8b0604cb6c09c31fded0d [INFO] running `Command { std: "docker" "start" "-a" "65732f1e990951d81508278cfa14939c1b7d9841b6e8b0604cb6c09c31fded0d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling oncemutex v0.1.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling regex-cache v0.2.1 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling sanitizer_macros v0.2.2 [INFO] [stderr] Compiling thiserror v1.0.22 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling phonenumber v0.3.7+8.13.52 [INFO] [stderr] Compiling sanitizer v0.1.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.98s [INFO] running `Command { std: "docker" "inspect" "65732f1e990951d81508278cfa14939c1b7d9841b6e8b0604cb6c09c31fded0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65732f1e990951d81508278cfa14939c1b7d9841b6e8b0604cb6c09c31fded0d", kill_on_drop: false }` [INFO] [stdout] 65732f1e990951d81508278cfa14939c1b7d9841b6e8b0604cb6c09c31fded0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 013f2e24e4858b655ecc9b8d7b80b96596c0b9b19b40732ccd3529a1bcc7d282 [INFO] running `Command { std: "docker" "start" "-a" "013f2e24e4858b655ecc9b8d7b80b96596c0b9b19b40732ccd3529a1bcc7d282", kill_on_drop: false }` [INFO] [stderr] Compiling sanitizer v0.1.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "013f2e24e4858b655ecc9b8d7b80b96596c0b9b19b40732ccd3529a1bcc7d282", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "013f2e24e4858b655ecc9b8d7b80b96596c0b9b19b40732ccd3529a1bcc7d282", kill_on_drop: false }` [INFO] [stdout] 013f2e24e4858b655ecc9b8d7b80b96596c0b9b19b40732ccd3529a1bcc7d282 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9cc607b0fe47c42a8f12205803ca44ab44253b1431195b95b096040b6d0a492f [INFO] running `Command { std: "docker" "start" "-a" "9cc607b0fe47c42a8f12205803ca44ab44253b1431195b95b096040b6d0a492f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/sanitizer-4242bc3cdf859474) [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test string_sanitizer::test::alphanumeric ... ok [INFO] [stdout] test string_sanitizer::test::clamp_max ... ok [INFO] [stdout] test int_sanitizer::test::basic_cap_min ... ok [INFO] [stdout] test int_sanitizer::test::basic_cap_max ... ok [INFO] [stdout] test string_sanitizer::test::multiple_lints ... ok [INFO] [stdout] test string_sanitizer::test::numeric ... ok [INFO] [stdout] test string_sanitizer::test::to_camel_case ... ok [INFO] [stdout] test string_sanitizer::test::to_kebab_case ... ok [INFO] [stdout] test string_sanitizer::test::to_lowercase ... ok [INFO] [stdout] test string_sanitizer::test::to_screaming_kebab_case ... ok [INFO] [stdout] test string_sanitizer::test::to_snake_case ... ok [INFO] [stdout] test string_sanitizer::test::to_screaming_snakecase ... ok [INFO] [stdout] test string_sanitizer::test::to_uppercase ... ok [INFO] [stdout] test string_sanitizer::test::trim ... ok [INFO] [stdout] test string_sanitizer::test::wrong_phone_number ... ok [INFO] [stderr] Doc-tests sanitizer [INFO] [stdout] test string_sanitizer::test::e164 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.99s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - Option (line 61) ... ok [INFO] [stdout] test src/lib.rs - Vec (line 90) ... ok [INFO] [stdout] test src/lib.rs - (line 17) ... FAILED [INFO] [stdout] test src/int_sanitizer.rs - int_sanitizer::IntSanitizer (line 17) ... ok [INFO] [stdout] test src/string_sanitizer.rs - string_sanitizer::StringSanitizer (line 11) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 17) stdout ---- [INFO] [stdout] error[E0659]: `sanitize` is ambiguous [INFO] [stdout] --> src/lib.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 8 | #[sanitize(trim)] [INFO] [stdout] | ^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: ambiguous because of a name conflict with a builtin attribute [INFO] [stdout] = note: `sanitize` could refer to a built-in attribute [INFO] [stdout] note: `sanitize` could also refer to the derive helper attribute defined here [INFO] [stdout] --> src/lib.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Sanitize)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0659]: `sanitize` is ambiguous [INFO] [stdout] --> src/lib.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 10 | #[sanitize(trim, lower_case)] [INFO] [stdout] | ^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: ambiguous because of a name conflict with a builtin attribute [INFO] [stdout] = note: `sanitize` could refer to a built-in attribute [INFO] [stdout] note: `sanitize` could also refer to the derive helper attribute defined here [INFO] [stdout] --> src/lib.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Sanitize)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0658]: the `#[sanitize]` attribute is an experimental feature [INFO] [stdout] --> src/lib.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 8 | #[sanitize(trim)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #39699 for more information [INFO] [stdout] = help: add `#![feature(sanitize)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-27; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error[E0658]: the `#[sanitize]` attribute is an experimental feature [INFO] [stdout] --> src/lib.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 10 | #[sanitize(trim, lower_case)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #39699 for more information [INFO] [stdout] = help: add `#![feature(sanitize)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-27; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error[E0539]: malformed `sanitize` attribute input [INFO] [stdout] --> src/lib.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 8 | #[sanitize(trim)] [INFO] [stdout] | ^^^^^^^^^^^----^^ [INFO] [stdout] | | [INFO] [stdout] | expected this to be of the form `trim = "..."` [INFO] [stdout] | [INFO] [stdout] help: try changing it to one of the following valid forms of the attribute [INFO] [stdout] | [INFO] [stdout] 8 - #[sanitize(trim)] [INFO] [stdout] 8 + #[sanitize(address = "on|off")] [INFO] [stdout] | [INFO] [stdout] 8 - #[sanitize(trim)] [INFO] [stdout] 8 + #[sanitize(cfi = "on|off")] [INFO] [stdout] | [INFO] [stdout] 8 - #[sanitize(trim)] [INFO] [stdout] 8 + #[sanitize(hwaddress = "on|off")] [INFO] [stdout] | [INFO] [stdout] 8 - #[sanitize(trim)] [INFO] [stdout] 8 + #[sanitize(kcfi = "on|off")] [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] [INFO] [stdout] error[E0539]: malformed `sanitize` attribute input [INFO] [stdout] --> src/lib.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 10 | #[sanitize(trim, lower_case)] [INFO] [stdout] | ^^^^^^^^^^^----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected this to be of the form `trim = "..."` [INFO] [stdout] | [INFO] [stdout] help: try changing it to one of the following valid forms of the attribute [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(address = "on|off")] [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(cfi = "on|off")] [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(hwaddress = "on|off")] [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(kcfi = "on|off")] [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] [INFO] [stdout] error[E0539]: malformed `sanitize` attribute input [INFO] [stdout] --> src/lib.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 10 | #[sanitize(trim, lower_case)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----------^^ [INFO] [stdout] | | [INFO] [stdout] | expected this to be of the form `lower_case = "..."` [INFO] [stdout] | [INFO] [stdout] help: try changing it to one of the following valid forms of the attribute [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(address = "on|off")] [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(cfi = "on|off")] [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(hwaddress = "on|off")] [INFO] [stdout] | [INFO] [stdout] 10 - #[sanitize(trim, lower_case)] [INFO] [stdout] 10 + #[sanitize(kcfi = "on|off")] [INFO] [stdout] | [INFO] [stdout] = and 5 other candidates [INFO] [stdout] [INFO] [stdout] error: sanitize attribute not allowed here [INFO] [stdout] --> src/lib.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 8 | #[sanitize(trim)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ------------ not a function, impl block, or module [INFO] [stdout] | [INFO] [stdout] = help: sanitize attribute can be applied to a function (with body), impl block, or module [INFO] [stdout] [INFO] [stdout] error: sanitize attribute not allowed here [INFO] [stdout] --> src/lib.rs:25:2 [INFO] [stdout] | [INFO] [stdout] 10 | #[sanitize(trim, lower_case)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | email: String [INFO] [stdout] | ------------- not a function, impl block, or module [INFO] [stdout] | [INFO] [stdout] = help: sanitize attribute can be applied to a function (with body), impl block, or module [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0539, E0658, E0659. [INFO] [stdout] For more information about an error, try `rustc --explain E0539`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 17) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.33s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "9cc607b0fe47c42a8f12205803ca44ab44253b1431195b95b096040b6d0a492f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cc607b0fe47c42a8f12205803ca44ab44253b1431195b95b096040b6d0a492f", kill_on_drop: false }` [INFO] [stdout] 9cc607b0fe47c42a8f12205803ca44ab44253b1431195b95b096040b6d0a492f