Skip to content

Commit

Permalink
Allow newly uplifted invalid_from_utf8 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed May 26, 2023
1 parent 7f99c7d commit b84c190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/alloc/tests/str.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/process/process-panic-after-fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#![feature(never_type)]
#![feature(panic_always_abort)]

#![allow(invalid_from_utf8)]

extern crate libc;

use std::alloc::{GlobalAlloc, Layout};
Expand Down

0 comments on commit b84c190

Please sign in to comment.