diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 13:58:54 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:33 +0100 |
commit | 3b58924a75ce0b6f4d2f9d6f481d21e9fb595313 (patch) | |
tree | ba99d600026ddb2106820c4e066ea10625991602 /gcc | |
parent | af07e6032f651d406c04255be68be2f9d1af0811 (diff) | |
download | gcc-3b58924a75ce0b6f4d2f9d6f481d21e9fb595313.zip gcc-3b58924a75ce0b6f4d2f9d6f481d21e9fb595313.tar.gz gcc-3b58924a75ce0b6f4d2f9d6f481d21e9fb595313.tar.bz2 |
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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: |