From e24469687267ff338f49c7fada3ef6cc0d2383e8 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Tue, 27 May 2025 13:25:01 +0200 Subject: [PATCH] gccrs: rib: Add all kinds of Ribs to pretty-printing gcc/rust/ChangeLog: * resolve/rust-rib.h: Add missing switch cases. --- gcc/rust/resolve/rust-rib.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/rust/resolve/rust-rib.h b/gcc/rust/resolve/rust-rib.h index 62189f7a6d1..140c991e2ab 100644 --- a/gcc/rust/resolve/rust-rib.h +++ b/gcc/rust/resolve/rust-rib.h @@ -216,9 +216,13 @@ public: return "Forward type param ban"; case Rib::Kind::ConstParamType: return "Const Param Type"; - default: - rust_unreachable (); + case Kind::Prelude: + return "Prelude"; + case Kind::Generics: + return "Generics"; } + + rust_unreachable (); } Rib (Kind kind); -- 2.47.3