about summary refs log tree commit diff
path: root/tests/ui/error-codes
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/error-codes
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/error-codes')
-rw-r--r--tests/ui/error-codes/E0601.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/error-codes/E0601.stderr b/tests/ui/error-codes/E0601.stderr
index 41a4a8f7dbb..c051bc0b31a 100644
--- a/tests/ui/error-codes/E0601.stderr
+++ b/tests/ui/error-codes/E0601.stderr
@@ -2,7 +2,7 @@ error[E0601]: `main` function not found in crate `E0601`
   --> $DIR/E0601.rs:1:37
    |
 LL |
-   |                                     ^ consider adding a `main` function to `$DIR/E0601.rs`
+   |                                    ^ consider adding a `main` function to `$DIR/E0601.rs`
 
 error: aborting due to 1 previous error