Move assert_matches to planned stable path
This commit is contained in:
parent
625b63f9e1
commit
58be5d6620
27 changed files with 43 additions and 40 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use alloc::ffi::CString;
|
||||
use alloc::rc::Rc;
|
||||
use alloc::sync::Arc;
|
||||
use core::assert_matches::assert_matches;
|
||||
use core::assert_matches;
|
||||
use core::ffi::{CStr, FromBytesUntilNulError, c_char};
|
||||
#[allow(deprecated)]
|
||||
use core::hash::SipHasher13 as DefaultHasher;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#![allow(invalid_from_utf8)]
|
||||
|
||||
use std::assert_matches::assert_matches;
|
||||
use std::assert_matches;
|
||||
use std::borrow::Cow;
|
||||
use std::cmp::Ordering::{Equal, Greater, Less};
|
||||
use std::str::{from_utf8, from_utf8_unchecked};
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
use std::assert_matches::assert_matches;
|
||||
use std::borrow::Cow;
|
||||
use std::cell::Cell;
|
||||
use std::collections::TryReserveErrorKind::*;
|
||||
use std::ops::Bound::*;
|
||||
use std::ops::{Bound, RangeBounds};
|
||||
use std::{panic, str};
|
||||
use std::{assert_matches, panic, str};
|
||||
|
||||
pub trait IntoCow<'a, B: ?Sized>
|
||||
where
|
||||
|
|
|
|||
|
|
@ -3,12 +3,10 @@ use core::num::NonZero;
|
|||
use core::ptr::NonNull;
|
||||
use core::{assert_eq, assert_ne};
|
||||
use std::alloc::System;
|
||||
use std::assert_matches::assert_matches;
|
||||
use std::borrow::Cow;
|
||||
use std::cell::Cell;
|
||||
use std::collections::TryReserveErrorKind::*;
|
||||
use std::fmt::Debug;
|
||||
use std::hint;
|
||||
use std::iter::InPlaceIterable;
|
||||
use std::mem::swap;
|
||||
use std::ops::Bound::*;
|
||||
|
|
@ -16,6 +14,7 @@ use std::panic::{AssertUnwindSafe, catch_unwind};
|
|||
use std::rc::Rc;
|
||||
use std::sync::atomic::{AtomicU32, Ordering};
|
||||
use std::vec::{Drain, IntoIter, PeekMut};
|
||||
use std::{assert_matches, hint};
|
||||
|
||||
use crate::testing::macros::struct_with_counted_drop;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use core::cell::Cell;
|
||||
use core::num::NonZero;
|
||||
use std::assert_matches::assert_matches;
|
||||
use std::assert_matches;
|
||||
use std::collections::TryReserveErrorKind::*;
|
||||
use std::collections::VecDeque;
|
||||
use std::collections::vec_deque::Drain;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue