https://gcc.gnu.org/g:e24469687267ff338f49c7fada3ef6cc0d2383e8

commit r16-2850-ge24469687267ff338f49c7fada3ef6cc0d2383e8
Author: Arthur Cohen <arthur.co...@embecosm.com>
Date:   Tue May 27 13:25:01 2025 +0200

    gccrs: rib: Add all kinds of Ribs to pretty-printing
    
    gcc/rust/ChangeLog:
    
            * resolve/rust-rib.h: Add missing switch cases.

Diff:
---
 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 62189f7a6d10..140c991e2ab5 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);

Reply via email to