rust/compiler/rustc_const_eval/src/util
Matthias Krüger c6de7ca41a
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.
2025-06-28 22:05:28 +02:00
..
alignment.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
caller_location.rs Rollup merge of #142708 - Darksonn:location-len-without-nul, r=Mark-Simulacrum 2025-06-28 22:05:28 +02:00
check_validity_requirement.rs rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
compare_types.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00
mod.rs Pretty print pattern type values with transmute if they don't satisfy their pattern 2025-02-05 14:56:41 +00:00
type_name.rs Rename unpack to kind 2025-05-27 11:14:45 +00:00