From: Arthur Cohen Date: Tue, 27 May 2025 11:25:01 +0000 (+0200) Subject: gccrs: rib: Add all kinds of Ribs to pretty-printing X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e24469687267ff338f49c7fada3ef6cc0d2383e8;p=thirdparty%2Fgcc.git gccrs: rib: Add all kinds of Ribs to pretty-printing gcc/rust/ChangeLog: * resolve/rust-rib.h: Add missing switch cases. --- 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);