From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 2023B38515D7; Fri, 18 Nov 2022 23:34:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2023B38515D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668814455; bh=5XO7JvS74dvW1BZPZfi54pibfGJBlca2LTOO7bG7n6M=; h=From:To:Subject:Date:From; b=SVGo580//d2NhGOV5nEfEvmanfH630JwP2gFu7HFTFXy7w9a5WK4qSmeShDfl6gBh f40q6QYhn+r+Tm7sSHIuQKc/ev1+yq9O8TdZjqPGgzLgnogtWdcv9Q+HlqXq9ifB46 7e5trIvEdWrEVcQbFJ3ueQmYHo+8pKCXGhnB4l/Q= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] ast: Dump trait object type one bound X-Act-Checkin: gcc X-Git-Author: Jakub Dupak X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 4c69451b3d46db438a5c2cc436f7b02dbf4bbab2 X-Git-Newrev: 5c943bf43888f9dd1a5934f678de8b8435f1199a Message-Id: <20221118233415.2023B38515D7@sourceware.org> Date: Fri, 18 Nov 2022 23:34:15 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5c943bf43888f9dd1a5934f678de8b8435f1199a commit 5c943bf43888f9dd1a5934f678de8b8435f1199a Author: Jakub Dupak Date: Tue Nov 15 17:02:00 2022 +0100 ast: Dump trait object type one bound Signed-off-by: Jakub Dupak Diff: --- gcc/rust/ast/rust-ast-dump.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 8e06bf38a6a..7d62571b778 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1656,8 +1656,15 @@ Dump::visit (ImplTraitTypeOneBound &type) } void -Dump::visit (TraitObjectTypeOneBound &) -{} +Dump::visit (TraitObjectTypeOneBound &type) +{ + // Syntax: + // dyn? TraitBound + + if (type.is_dyn ()) + stream << "dyn "; + visit(type.get_trait_bound()); +} void Dump::visit (TupleType &type)