about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-05-09 09:32:09 -0700
committerDan Gohman <dev@sunfishcode.online>2022-06-23 13:10:47 -0700
commit516a67aad9a2d962917724138654e8f14a0fac4c (patch)
tree75a589d3999f6affb021b870403dab7a6d3b7be4
parenta7d57c61c2422b7942575936faf9a62d9e5e1599 (diff)
downloadrust-516a67aad9a2d962917724138654e8f14a0fac4c.tar.gz
rust-516a67aad9a2d962917724138654e8f14a0fac4c.zip
Remove `is_known_utf8` checks from more tests where it's no longer set.
-rw-r--r--library/std/src/sys_common/wtf8/tests.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/library/std/src/sys_common/wtf8/tests.rs b/library/std/src/sys_common/wtf8/tests.rs
index ba2bdc76e3b..1a302d64694 100644
--- a/library/std/src/sys_common/wtf8/tests.rs
+++ b/library/std/src/sys_common/wtf8/tests.rs
@@ -604,11 +604,9 @@ fn wtf8_clone_into() {
 fn wtf8_to_ascii_lowercase() {
     let lowercase = Wtf8::from_str("").to_ascii_lowercase();
     assert_eq!(lowercase.bytes, b"");
-    assert!(lowercase.is_known_utf8);
 
     let lowercase = Wtf8::from_str("GrEeN gRaPeS! 🍇").to_ascii_lowercase();
     assert_eq!(lowercase.bytes, b"green grapes! \xf0\x9f\x8d\x87");
-    assert!(lowercase.is_known_utf8);
 
     let lowercase = unsafe { Wtf8::from_bytes_unchecked(b"\xED\xA0\x80").to_ascii_lowercase() };
     assert_eq!(lowercase.bytes, b"\xED\xA0\x80");
@@ -619,11 +617,9 @@ fn wtf8_to_ascii_lowercase() {
 fn wtf8_to_ascii_uppercase() {
     let uppercase = Wtf8::from_str("").to_ascii_uppercase();
     assert_eq!(uppercase.bytes, b"");
-    assert!(uppercase.is_known_utf8);
 
     let uppercase = Wtf8::from_str("GrEeN gRaPeS! 🍇").to_ascii_uppercase();
     assert_eq!(uppercase.bytes, b"GREEN GRAPES! \xf0\x9f\x8d\x87");
-    assert!(uppercase.is_known_utf8);
 
     let uppercase = unsafe { Wtf8::from_bytes_unchecked(b"\xED\xA0\x80").to_ascii_uppercase() };
     assert_eq!(uppercase.bytes, b"\xED\xA0\x80");