about summary refs log tree commit diff
path: root/library/alloc/tests/str.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2023-05-13 21:49:58 +0200
committerUrgau <urgau@numericable.fr>2023-05-27 00:18:28 +0200
commitb84c190b9ac872fc07ac59c9ec7712dba5b4c2f8 (patch)
treee6ff13b35bdbabb2154683d3c5d5217c3b88a856 /library/alloc/tests/str.rs
parent7f99c7d3e64143bdeda8f519a656ad1963162fb2 (diff)
downloadrust-b84c190b9ac872fc07ac59c9ec7712dba5b4c2f8.tar.gz
rust-b84c190b9ac872fc07ac59c9ec7712dba5b4c2f8.zip
Allow newly uplifted invalid_from_utf8 lint
Diffstat (limited to 'library/alloc/tests/str.rs')
-rw-r--r--library/alloc/tests/str.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/tests/str.rs b/library/alloc/tests/str.rs
index c1dbbde08b6..0ba5d088f61 100644
--- a/library/alloc/tests/str.rs
+++ b/library/alloc/tests/str.rs
@@ -1,3 +1,5 @@
+#![cfg_attr(not(bootstrap), allow(invalid_from_utf8))]
+
 use std::assert_matches::assert_matches;
 use std::borrow::Cow;
 use std::cmp::Ordering::{Equal, Greater, Less};