From 5fd6a9e337c848a7fcd5c5111e9eaf396cfc3ad5 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 11 Feb 2025 14:29:32 -0500 Subject: Fix Rust InstructionTextTokenKind not consulting the string token context This caused a crash if we visited a builtin with a "fake" string. Where the token value is not actually the string type. --- plugins/dwarf/dwarfdump/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/dwarf/dwarfdump/src/lib.rs b/plugins/dwarf/dwarfdump/src/lib.rs index dabf88fb..7bdbd8a0 100644 --- a/plugins/dwarf/dwarfdump/src/lib.rs +++ b/plugins/dwarf/dwarfdump/src/lib.rs @@ -147,7 +147,7 @@ fn get_info_string( if let Ok(attr_string) = attr_reader.to_string() { attr_line.push(InstructionTextToken::new( attr_string.as_ref(), - InstructionTextTokenKind::String { + InstructionTextTokenKind::StringContent { ty: StringType::Utf8String, }, )); -- cgit v1.3.1