From 8ba058552b61484248fc295dfbbe2e18a9d49e48 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Fri, 1 Dec 2017 21:57:34 -0700 Subject: Patch `std` to be compatible with Rust nightly-2017-12-01 This only fixes things enough so that the project compiles again. More standard library changes from upstream Rust will be pulled in later. --- ctr-std/src/lib.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'ctr-std/src/lib.rs') diff --git a/ctr-std/src/lib.rs b/ctr-std/src/lib.rs index 28ab259..4c08fe2 100644 --- a/ctr-std/src/lib.rs +++ b/ctr-std/src/lib.rs @@ -64,8 +64,6 @@ use prelude::v1::*; debug_assert_ne, unreachable, unimplemented, write, writeln, try)] extern crate core as __core; -#[allow(deprecated)] extern crate rand as core_rand; - #[macro_use] #[macro_reexport(vec, format)] extern crate alloc; @@ -184,20 +182,8 @@ mod sys; // Private support modules mod panicking; -mod rand; mod memchr; // The runtime entry point and a few unstable public functions used by the // compiler pub mod rt; - -// Some external utilities of the standard library rely on randomness (aka -// rustc_back::TempDir and tests) and need a way to get at the OS rng we've got -// here. This module is not at all intended for stabilization as-is, however, -// but it may be stabilized long-term. As a result we're exposing a hidden, -// unstable module so we can get our build working. -#[doc(hidden)] -#[unstable(feature = "rand", issue = "0")] -pub mod __rand { - pub use rand::{thread_rng, ThreadRng, Rng}; -} -- cgit v1.2.3