From 2854b1b31b704e5efaf87495b76debe01dbe5a25 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Tue, 29 Aug 2023 17:56:14 +0200 Subject: [PATCH] type-check-type: Smol cleanup in format string --- gcc/rust/typecheck/rust-hir-type-check-type.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/typecheck/rust-hir-type-check-type.cc b/gcc/rust/typecheck/rust-hir-type-check-type.cc index 60a20c30cbf5..1b1f6b6afe10 100644 --- a/gcc/rust/typecheck/rust-hir-type-check-type.cc +++ b/gcc/rust/typecheck/rust-hir-type-check-type.cc @@ -356,7 +356,7 @@ TypeCheckType::resolve_root_path (HIR::TypePath &path, size_t *offset, if (is_root) { rust_error_at (seg->get_locus (), - "unknown reference for resolved name: %<%s%>", + "unknown reference for resolved name: %qs", seg->get_ident_segment ().as_string ().c_str ()); return new TyTy::ErrorType (path.get_mappings ().get_hirid ()); }