]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: ast: Dump never type
authorJakub Dupak <dev@jakubdupak.com>
Sun, 6 Nov 2022 20:23:12 +0000 (21:23 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:47 +0000 (12:36 +0100)
gcc/rust/ChangeLog:

* ast/rust-ast-dump.cc (Dump::visit): Add missing never type visitor.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/ast/rust-ast-dump.cc

index e6d6e070709172f12e82d5b87c7ef428df1a7a90..3af4895269c6e4e06d5e566a73c13763fd530ba7 100644 (file)
@@ -1585,7 +1585,12 @@ Dump::visit (TupleType &)
 
 void
 Dump::visit (NeverType &)
-{}
+{
+    // Syntax:
+    //  !
+
+    stream << '!';
+}
 
 void
 Dump::visit (RawPointerType &type)