From 2356259101133816400254823086942099919442 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 27 Dec 2024 13:41:54 -0500 Subject: One case of needing the type printer in pseudo rust --- lang/rust/pseudorust.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lang/rust/pseudorust.cpp') diff --git a/lang/rust/pseudorust.cpp b/lang/rust/pseudorust.cpp index 703f1efd..837a7932 100644 --- a/lang/rust/pseudorust.cpp +++ b/lang/rust/pseudorust.cpp @@ -576,7 +576,13 @@ void PseudoRustFunction::GetExprText(const HighLevelILInstruction& instr, HighLe { tokens.AppendOpenParen(); tokens.AppendOpenParen(); - for (auto& token: instr.GetType()->GetTokens(GetArchitecture()->GetStandalonePlatform())) + RustTypePrinter printer; + auto typeTokens = printer.GetTypeTokens( + instr.GetType(), + GetArchitecture()->GetStandalonePlatform(), + QualifiedName() + ); + for (auto& token: typeTokens) { tokens.Append(token); } -- cgit v1.3.1