From: Arthur Cohen <arthur.co...@embecosm.com> gcc/rust/ChangeLog:
* util/rust-hir-map.cc (Mappings::get_lang_item_node): Better formatting when a lang item does not exist when it should. --- gcc/rust/util/rust-hir-map.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/rust/util/rust-hir-map.cc b/gcc/rust/util/rust-hir-map.cc index 39c3a98f16b..e58f1a2a715 100644 --- a/gcc/rust/util/rust-hir-map.cc +++ b/gcc/rust/util/rust-hir-map.cc @@ -1305,8 +1305,8 @@ Mappings::get_lang_item_node (LangItem::Kind item_type) if (auto lookup = lookup_lang_item_node (item_type)) return *lookup; - rust_fatal_error (UNKNOWN_LOCATION, "failed to find lang item %qs", - LangItem::ToString (item_type).c_str ()); + rust_fatal_error (UNKNOWN_LOCATION, "undeclared lang item: %qs", + LangItem::PrettyString (item_type).c_str ()); } void -- 2.45.2