about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAda Alakbarova <ada.alakbarova@proton.me>2025-08-13 16:24:05 +0200
committerAda Alakbarova <ada.alakbarova@proton.me>2025-08-13 16:34:24 +0200
commitff2b5e66a16e7f86d5bf723b812b51d3cc60917b (patch)
tree286b4616eab278298369ceed11f82c2bce454230
parentad9686e0c79fd4c4f650f6515c6ac3e48489e540 (diff)
downloadrust-ff2b5e66a16e7f86d5bf723b812b51d3cc60917b.tar.gz
rust-ff2b5e66a16e7f86d5bf723b812b51d3cc60917b.zip
test: make `suggestions` the main file
since it's the one that has suggestions
-rw-r--r--tests/ui/char_lit_as_u8.fixed (renamed from tests/ui/char_lit_as_u8_suggestions.fixed)0
-rw-r--r--tests/ui/char_lit_as_u8.rs (renamed from tests/ui/char_lit_as_u8_suggestions.rs)0
-rw-r--r--tests/ui/char_lit_as_u8.stderr (renamed from tests/ui/char_lit_as_u8_suggestions.stderr)8
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/char_lit_as_u8_suggestions.fixed b/tests/ui/char_lit_as_u8.fixed
index 64aacedfd36..64aacedfd36 100644
--- a/tests/ui/char_lit_as_u8_suggestions.fixed
+++ b/tests/ui/char_lit_as_u8.fixed
diff --git a/tests/ui/char_lit_as_u8_suggestions.rs b/tests/ui/char_lit_as_u8.rs
index a8f39e27605..a8f39e27605 100644
--- a/tests/ui/char_lit_as_u8_suggestions.rs
+++ b/tests/ui/char_lit_as_u8.rs
diff --git a/tests/ui/char_lit_as_u8_suggestions.stderr b/tests/ui/char_lit_as_u8.stderr
index 158dfd6bed2..9bcded7b0ff 100644
--- a/tests/ui/char_lit_as_u8_suggestions.stderr
+++ b/tests/ui/char_lit_as_u8.stderr
@@ -1,5 +1,5 @@
 error: casting a character literal to `u8` truncates
-  --> tests/ui/char_lit_as_u8_suggestions.rs:4:13
+  --> tests/ui/char_lit_as_u8.rs:4:13
    |
 LL |     let _ = 'a' as u8;
    |             ^^^^^^^^^ help: use a byte literal instead: `b'a'`
@@ -9,7 +9,7 @@ LL |     let _ = 'a' as u8;
    = help: to override `-D warnings` add `#[allow(clippy::char_lit_as_u8)]`
 
 error: casting a character literal to `u8` truncates
-  --> tests/ui/char_lit_as_u8_suggestions.rs:6:13
+  --> tests/ui/char_lit_as_u8.rs:6:13
    |
 LL |     let _ = '\n' as u8;
    |             ^^^^^^^^^^ help: use a byte literal instead: `b'\n'`
@@ -17,7 +17,7 @@ LL |     let _ = '\n' as u8;
    = note: `char` is four bytes wide, but `u8` is a single byte
 
 error: casting a character literal to `u8` truncates
-  --> tests/ui/char_lit_as_u8_suggestions.rs:8:13
+  --> tests/ui/char_lit_as_u8.rs:8:13
    |
 LL |     let _ = '\0' as u8;
    |             ^^^^^^^^^^ help: use a byte literal instead: `b'\0'`
@@ -25,7 +25,7 @@ LL |     let _ = '\0' as u8;
    = note: `char` is four bytes wide, but `u8` is a single byte
 
 error: casting a character literal to `u8` truncates
-  --> tests/ui/char_lit_as_u8_suggestions.rs:10:13
+  --> tests/ui/char_lit_as_u8.rs:10:13
    |
 LL |     let _ = '\x01' as u8;
    |             ^^^^^^^^^^^^ help: use a byte literal instead: `b'\x01'`