aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-01-23 21:01:54 -0500
committerGitHub <noreply@github.com>2023-01-23 21:01:54 -0500
commitac28bedbeec5947a9de651175277b4e554334b16 (patch)
treec7a246d6d29267aca035686ac0d76d548ec9c680 /lib/std/debug.zig
parentbbfbb7b22f8db1228e9ccd33f320bb30961ef911 (diff)
parent186e8058381747b589190898560dcfa5622facc7 (diff)
downloadzig-ac28bedbeec5947a9de651175277b4e554334b16.tar.gz
zig-ac28bedbeec5947a9de651175277b4e554334b16.zip
Merge pull request #14418 from ifreund/assume-sentinel-sux
std: eliminate pointless meta.assumeSentinel() usage
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 99ddb266b6..3708c4fe81 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -978,7 +978,7 @@ pub fn readElfDebugInfo(allocator: mem.Allocator, elf_file: File) !ModuleDebugIn
for (shdrs) |*shdr| {
if (shdr.sh_type == elf.SHT_NULL) continue;
- const name = std.mem.span(std.meta.assumeSentinel(header_strings[shdr.sh_name..].ptr, 0));
+ const name = mem.sliceTo(header_strings[shdr.sh_name..], 0);
if (mem.eql(u8, name, ".debug_info")) {
opt_debug_info = try chopSlice(mapped_mem, shdr.sh_offset, shdr.sh_size);
} else if (mem.eql(u8, name, ".debug_abbrev")) {