[INFO] fetching crate sanitizer 0.1.7... [INFO] testing sanitizer-0.1.7 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate sanitizer 0.1.7 into /workspace/builds/worker-4-tc2/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-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate sanitizer 0.1.7 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c31b367bb6abc372883594b5874234a89b93cc112a97bc0c233794d68e0db48d [INFO] running `Command { std: "docker" "start" "-a" "c31b367bb6abc372883594b5874234a89b93cc112a97bc0c233794d68e0db48d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c31b367bb6abc372883594b5874234a89b93cc112a97bc0c233794d68e0db48d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c31b367bb6abc372883594b5874234a89b93cc112a97bc0c233794d68e0db48d", kill_on_drop: false }` [INFO] [stdout] c31b367bb6abc372883594b5874234a89b93cc112a97bc0c233794d68e0db48d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f7fc5aa153efc33fb08f78471ac74eb8c6460af9f6a939889d31182e1e7dc67 [INFO] running `Command { std: "docker" "start" "-a" "8f7fc5aa153efc33fb08f78471ac74eb8c6460af9f6a939889d31182e1e7dc67", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling oncemutex v0.1.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling sanitizer_macros v0.2.2 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling thiserror v1.0.22 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling regex-cache v0.2.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 45.95s [INFO] running `Command { std: "docker" "inspect" "8f7fc5aa153efc33fb08f78471ac74eb8c6460af9f6a939889d31182e1e7dc67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f7fc5aa153efc33fb08f78471ac74eb8c6460af9f6a939889d31182e1e7dc67", kill_on_drop: false }` [INFO] [stdout] 8f7fc5aa153efc33fb08f78471ac74eb8c6460af9f6a939889d31182e1e7dc67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26747904c828ac1b8e6036760009771551b3bdbf3f160d7c351fbf88eda21dd4 [INFO] running `Command { std: "docker" "start" "-a" "26747904c828ac1b8e6036760009771551b3bdbf3f160d7c351fbf88eda21dd4", 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.76s [INFO] running `Command { std: "docker" "inspect" "26747904c828ac1b8e6036760009771551b3bdbf3f160d7c351fbf88eda21dd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26747904c828ac1b8e6036760009771551b3bdbf3f160d7c351fbf88eda21dd4", kill_on_drop: false }` [INFO] [stdout] 26747904c828ac1b8e6036760009771551b3bdbf3f160d7c351fbf88eda21dd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2c389889dbc4aac4a079fa2edc8b2ec739da5fe502ab9aeecc309e0c2b98bfa4 [INFO] running `Command { std: "docker" "start" "-a" "2c389889dbc4aac4a079fa2edc8b2ec739da5fe502ab9aeecc309e0c2b98bfa4", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/sanitizer-4242bc3cdf859474) [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test int_sanitizer::test::basic_cap_max ... ok [INFO] [stdout] test int_sanitizer::test::basic_cap_min ... ok [INFO] [stdout] test string_sanitizer::test::alphanumeric ... ok [INFO] [stdout] test string_sanitizer::test::numeric ... ok [INFO] [stdout] test string_sanitizer::test::clamp_max ... ok [INFO] [stdout] test string_sanitizer::test::multiple_lints ... 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::trim ... ok [INFO] [stdout] test string_sanitizer::test::to_snake_case ... ok [INFO] [stdout] test string_sanitizer::test::to_screaming_kebab_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::to_lowercase ... ok [INFO] [stdout] test string_sanitizer::test::wrong_phone_number ... ok [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.95s [INFO] [stdout] [INFO] [stderr] Doc-tests sanitizer [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - Option (line 61) ... ok [INFO] [stdout] test src/lib.rs - (line 17) ... FAILED [INFO] [stdout] test src/string_sanitizer.rs - string_sanitizer::StringSanitizer (line 11) ... ok [INFO] [stdout] test src/lib.rs - Vec (line 90) ... ok [INFO] [stdout] test src/int_sanitizer.rs - int_sanitizer::IntSanitizer (line 17) ... 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-09-25; 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-09-25; 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.83s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2c389889dbc4aac4a079fa2edc8b2ec739da5fe502ab9aeecc309e0c2b98bfa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c389889dbc4aac4a079fa2edc8b2ec739da5fe502ab9aeecc309e0c2b98bfa4", kill_on_drop: false }` [INFO] [stdout] 2c389889dbc4aac4a079fa2edc8b2ec739da5fe502ab9aeecc309e0c2b98bfa4