about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-28 22:05:28 +0200
committerGitHub <noreply@github.com>2025-06-28 22:05:28 +0200
commitc6de7ca41a035a30472d51d5c3a5fb8bdc83c73e (patch)
treebae2a2adb8b9fbc18bea15fe0ea1419aac0692cd /compiler/rustc_mir_transform/src/coverage/query.rs
parent7394bd5fc220c5bbf7b7dfde573c2e45d7825333 (diff)
parent6a1b7df4854b0023e34b18e2196d3069906da796 (diff)
downloadrust-c6de7ca41a035a30472d51d5c3a5fb8bdc83c73e.tar.gz
rust-c6de7ca41a035a30472d51d5c3a5fb8bdc83c73e.zip
Rollup merge of #142708 - Darksonn:location-len-without-nul, r=Mark-Simulacrum
Do not include NUL-terminator in computed length

This PR contains just the first commit of rust-lang/rust#142579 which changes it so that the string length stored in the `Location` is the length of the `&str` rather than the length of the `&CStr`. Since most users will want the `&str` length, it seems better to optimize for that use-case.

There should be no visible changes in the behavior or API.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions