]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: rib: Add all kinds of Ribs to pretty-printing
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 27 May 2025 11:25:01 +0000 (13:25 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:46 +0000 (16:36 +0200)
gcc/rust/ChangeLog:

* resolve/rust-rib.h: Add missing switch cases.

gcc/rust/resolve/rust-rib.h

index 62189f7a6d10fdedf705ac9db48d968f89c8fd4e..140c991e2ab5452c90699033549423bbf2fd5d52 100644 (file)
@@ -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);