buildRustCrate: fixup integration test mod name

Fixes #204051. I have tried this on the reproducer stated in the ticket.

```
[nix-develop]$ $(nix-build -I nixpkgs=/home/shana/programming/nixpkgs --no-out-link)/tests/foo

running 1 test
test check_module_name ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
```

authored by Mateusz Kowalczyk and committed by winter.bsky.social 22770e23 5fb9ccbd

+4
+4
pkgs/build-support/rust/build-rust-crate/lib.sh
··· 78 build_bin_test_file() { 79 local file="$1" 80 local derived_crate_name="${file//\//_}" 81 derived_crate_name="${derived_crate_name%.rs}" 82 build_bin_test "$derived_crate_name" "$file" 83 }
··· 78 build_bin_test_file() { 79 local file="$1" 80 local derived_crate_name="${file//\//_}" 81 + # Make sure to strip the top level `tests` directory: see #204051. Note that 82 + # a forward slash has now become an underscore due to the substitution 83 + # above. 84 + derived_crate_name=${derived_crate_name#"tests_"} 85 derived_crate_name="${derived_crate_name%.rs}" 86 build_bin_test "$derived_crate_name" "$file" 87 }