From 3b58924a75ce0b6f4d2f9d6f481d21e9fb595313 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 13:58:54 +0200 Subject: gccrs: dump: Fix dollar spacing rule Space should be removed after the dollar sign, not before. gcc/rust/ChangeLog: * ast/rust-ast-dump.cc (Dump::require_spacing): Change dollar spacing rule. Signed-off-by: Pierre-Emmanuel Patry --- gcc/rust/ast/rust-ast-dump.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index a1e153a..2612c27e 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -43,7 +43,6 @@ Dump::require_spacing (TokenPtr previous, TokenPtr current) case LEFT_SQUARE: case RIGHT_SQUARE: case RIGHT_PAREN: - case DOLLAR_SIGN: case SEMICOLON: case COMMA: case DOT: @@ -55,6 +54,7 @@ Dump::require_spacing (TokenPtr previous, TokenPtr current) switch (previous->get_id ()) { case SCOPE_RESOLUTION: + case DOLLAR_SIGN: case LEFT_SQUARE: case LEFT_PAREN: case AMP: -- cgit v1.1