A space was output around dots as well as after references, this made
things kinda horrible to look at and clearly not usual.
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::require_spacing): Add a rule to
remove spaces around dots and after references.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
case DOLLAR_SIGN:
case SEMICOLON:
case COMMA:
+ case DOT:
return false;
default:
break;
case SCOPE_RESOLUTION:
case LEFT_SQUARE:
case LEFT_PAREN:
+ case AMP:
+ case DOT:
return false;
default:
return true;