about summary refs log tree commit diff
path: root/tests/ui/issues
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-25 04:43:19 +0200
committerGitHub <noreply@github.com>2024-07-25 04:43:19 +0200
commitcce2db06c0206949c5d19d52472fd480ca2d60c0 (patch)
tree3c09a9deca25e52b631e67f034c87f5ad16154d1 /tests/ui/issues
parentcfc5f25b3d7c2f9fa37d0165085cdd4120939716 (diff)
parent9bd7680b2e0f1f5680b04fdb2401bad3e082fa38 (diff)
downloadrust-cce2db06c0206949c5d19d52472fd480ca2d60c0.tar.gz
rust-cce2db06c0206949c5d19d52472fd480ca2d60c0.zip
Rollup merge of #127528 - estebank:ascii-control-chars, r=oli-obk
Replace ASCII control chars with Unicode Control Pictures

Replace ASCII control chars like `CR` with Unicode Control Pictures like `␍`:

```
error: bare CR not allowed in doc-comment
  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:3:32
   |
LL | /// doc comment with bare CR: '␍'
   |                                ^
```

Centralize the checking of unicode char width for the purposes of CLI display in one place. Account for the new replacements. Remove unneeded tracking of "zero-width" unicode chars, as we calculate these in the `SourceMap` as needed now.
Diffstat (limited to 'tests/ui/issues')
-rw-r--r--tests/ui/issues/issue-44078.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/issues/issue-44078.stderr b/tests/ui/issues/issue-44078.stderr
index 3e12de34e11..41106b29aad 100644
--- a/tests/ui/issues/issue-44078.stderr
+++ b/tests/ui/issues/issue-44078.stderr
@@ -4,7 +4,7 @@ error[E0765]: unterminated double quote string
 LL |       "😊"";
    |  _________^
 LL | | }
-   | |__^
+   | |_^
 
 error: aborting due to 1 previous error