From: Arthur Cohen <arthur.co...@embecosm.com>

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.49.0

Reply via email to