rust/compiler/rustc_const_eval/src
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
..
check_consts Rollup merge of #143092 - RalfJung:const-check-lifetime-ext, r=oli-obk 2025-06-27 22:13:06 +02:00
const_eval Auto merge of #141759 - 1c3t3a:discriminants-query, r=saethlin 2025-06-28 10:25:00 +00:00
interpret Rollup merge of #143046 - RalfJung:zst-unsafe-cell, r=lcnr,oli-obk 2025-06-27 22:13:05 +02:00
util Rollup merge of #142708 - Darksonn:location-len-without-nul, r=Mark-Simulacrum 2025-06-28 22:05:28 +02:00
errors.rs const checks: avoid 'top-level scope' terminology 2025-06-27 17:03:48 +02:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00