pub use core::option; // necessary for panic!()
pub use core::clone; // derive(Clone)
pub use core::cmp; // derive(Eq, Ord, etc.)
- pub use core::marker; // derive(Copy)
+ pub use core::marker; // derive(Copy)
pub use core::hash; // derive(Hash)
+ pub use core::ops; // RangeFull
}
#[cfg(test)]
mod core {
pub use panicking;
pub use fmt;
- pub use ops;
}
#[doc(hidden)]
mod std {
pub use clone;
pub use cmp;
- pub use marker;
- pub use option;
pub use fmt;
pub use hash;
+ pub use marker;
+ pub use ops;
+ pub use option;
}
// except according to those terms.
use test::Bencher;
-use core::ops::{Range, FullRange, RangeFrom, RangeTo};
+use core::ops::{Range, RangeFull, RangeFrom, RangeTo};
// Overhead of dtors
#[test]
fn test_full_range() {
// Not much to test.
- let _ = FullRange;
+ let _ = RangeFull;
}
pub use slice;
pub use boxed; // used for vec![]
-
}
// something for RangeFull.
hi = self.last_span.hi;
- let idents = vec![token::str_to_ident("core"),
+ let idents = vec![token::str_to_ident("std"),
token::str_to_ident("ops"),
token::str_to_ident("RangeFull")];
let segments = idents.into_iter().map(|ident| {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use ::core::ops::RangeFull;
+use ::std::ops::RangeFull;
fn test<T : Clone>(arg: T) -> T {
arg.clone()