From 0081ef0dadda6e2ee33ee0710a19bf6eb5cb0e6d Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 13:58:54 +0200 Subject: 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/rust') diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 44b6a70..071a5c0 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