diff options
| author | Urgau <urgau@numericable.fr> | 2023-05-13 21:49:58 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-05-27 00:18:28 +0200 |
| commit | b84c190b9ac872fc07ac59c9ec7712dba5b4c2f8 (patch) | |
| tree | e6ff13b35bdbabb2154683d3c5d5217c3b88a856 | |
| parent | 7f99c7d3e64143bdeda8f519a656ad1963162fb2 (diff) | |
| download | rust-b84c190b9ac872fc07ac59c9ec7712dba5b4c2f8.tar.gz rust-b84c190b9ac872fc07ac59c9ec7712dba5b4c2f8.zip | |
Allow newly uplifted invalid_from_utf8 lint
| -rw-r--r-- | library/alloc/tests/str.rs | 2 | ||||
| -rw-r--r-- | tests/ui/process/process-panic-after-fork.rs | 2 |
2 files changed, 4 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}; diff --git a/tests/ui/process/process-panic-after-fork.rs b/tests/ui/process/process-panic-after-fork.rs index da268312173..7c2fc296bb0 100644 --- a/tests/ui/process/process-panic-after-fork.rs +++ b/tests/ui/process/process-panic-after-fork.rs @@ -11,6 +11,8 @@ #![feature(never_type)] #![feature(panic_always_abort)] +#![allow(invalid_from_utf8)] + extern crate libc; use std::alloc::{GlobalAlloc, Layout}; |
