rust/tests/pretty
bors 80deabd098 Auto merge of #120227 - nnethercote:further-improve-space_between, r=petrochenkov
Further improve `space_between`

`space_between` is used by `print_tts` to decide when spaces should be put between  tokens. This PR improves it in two ways:
- avoid unnecessary spaces before semicolons, and
- don't omit some necessary spaces before/after some punctuation symbols.

r? `@petrochenkov`
2024-01-31 02:01:43 +00:00
..
auxiliary
asm.pp
asm.rs
ast-stmt-expr-attr.rs
async.rs
attr-derive.rs
attr-fn-inner.rs
attr-literals.rs
attr-tokens-raw-ident.rs
auto-trait.rs
blank-lines.rs
block-comment-multiple-asterisks.rs
block-comment-trailing-whitespace2.rs
block-comment-trailing-whitespace.rs
block-comment-wchar.pp
block-comment-wchar.rs
block-disambig.rs
cast-lt.pp Improve print_tts by changing tokenstream::Spacing. 2023-12-11 09:19:09 +11:00
cast-lt.rs
closure-reform-pretty.rs
delegation.rs Delegation implementation: step 1 2024-01-12 14:11:16 +03:00
delimited-token-groups.rs Don't insert spaces before most semicolons in print_tts. 2024-01-22 20:14:59 +11:00
disamb-stmt-expr.rs
do1.rs
doc-comments.rs
dollar-crate.pp
dollar-crate.rs
empty-impl.rs
empty-lines.rs
enum-variant-vis.rs
example1.rs
example2.pp
example2.rs
expanded-and-path-remap-80832.pp
expanded-and-path-remap-80832.rs
fn-return.rs
fn-types.rs
fn-variadic.rs
for-comment.rs
format-args-str-escape.pp Preserve unicode escapes in format string literals when pretty-printing AST 2023-10-16 21:20:21 +02:00
format-args-str-escape.rs Preserve unicode escapes in format string literals when pretty-printing AST 2023-10-16 21:20:21 +02:00
gat-bounds.rs
hir-fn-variadic.pp Remove unnecessary CVarArgs name skipping logic 2023-10-25 17:44:17 +02:00
hir-fn-variadic.rs Print variadic argument pattern in HIR pretty printer 2023-10-25 17:36:04 +02:00
hir-pretty-loop.pp
hir-pretty-loop.rs
if-attr.rs
import-renames.rs
issue-4264.pp Make some non-diagnostic-affecting QPath::LangItem into regular qpaths 2023-12-26 04:07:38 +00:00
issue-4264.rs
issue-12590-a.rs
issue-12590-b.rs
issue-12590-c.pp
issue-12590-c.rs
issue-19077.rs
issue-25031.rs
issue-30731.rs
issue-31073.pp
issue-31073.rs
issue-68710-field-attr-proc-mac-lost.rs
issue-73626.rs
issue-74745.rs
issue-85089.pp
issue-85089.rs
let.rs
lifetime.rs
macro_rules.rs Don't insert spaces before most semicolons in print_tts. 2024-01-22 20:14:59 +11:00
macro.rs
match-block-expr.rs
match-naked-expr-medium.rs
match-naked-expr.rs
nested-item-vis-defaultness.rs
offset_of.rs Remove feature(offset_of) from tests 2024-01-19 20:38:51 +00:00
path-type-bounds.rs
qpath-associated-type-bound.rs
raw-address-of.rs
raw-str-nonexpr.rs
stmt_expr_attributes.rs Don't insert spaces before most semicolons in print_tts. 2024-01-22 20:14:59 +11:00
struct-pattern.rs
struct-tuple.rs
tag-blank-lines.rs
tests-are-sorted.pp Add #[coverage(off)] to closures introduced by #[test]/#[bench] 2024-01-21 23:17:00 +11:00
tests-are-sorted.rs
top-level-doc-comments.rs
trait-inner-attr.rs
trait-polarity.rs
trait-safety.rs
unary-op-disambig.rs
use-tree.rs
vec-comments.pp
vec-comments.rs
where-clauses.rs
yeet-expr.rs