libstd => 2018
This commit is contained in:
parent
7e001e5c6c
commit
93b6d9e086
284 changed files with 1989 additions and 2024 deletions
|
@ -13,17 +13,18 @@
|
|||
// coherence challenge (e.g., specialization, neg impls, etc) we can
|
||||
// reconsider what crate these items belong in.
|
||||
|
||||
use alloc::{AllocErr, LayoutErr, CannotReallocInPlace};
|
||||
use any::TypeId;
|
||||
use borrow::Cow;
|
||||
use cell;
|
||||
use char;
|
||||
use core::array;
|
||||
use fmt::{self, Debug, Display};
|
||||
use mem::transmute;
|
||||
use num;
|
||||
use str;
|
||||
use string;
|
||||
|
||||
use crate::alloc::{AllocErr, LayoutErr, CannotReallocInPlace};
|
||||
use crate::any::TypeId;
|
||||
use crate::borrow::Cow;
|
||||
use crate::cell;
|
||||
use crate::char;
|
||||
use crate::fmt::{self, Debug, Display};
|
||||
use crate::mem::transmute;
|
||||
use crate::num;
|
||||
use crate::str;
|
||||
use crate::string;
|
||||
|
||||
/// `Error` is a trait representing the basic expectations for error values,
|
||||
/// i.e., values of type `E` in [`Result<T, E>`]. Errors must describe
|
||||
|
@ -852,7 +853,7 @@ impl dyn Error + Send + Sync {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::Error;
|
||||
use fmt;
|
||||
use crate::fmt;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
struct A;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue