diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-07-06 22:21:04 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-07-14 12:27:08 -0700 |
| commit | c199790077587e88445b0244c34e0a4a526d6498 (patch) | |
| tree | daff8089c63373f2de3e55abe17ea5fe00994105 | |
| parent | 46266bd60651b75e476115ec97a4ab0c4f9f462a (diff) | |
| download | rust-c199790077587e88445b0244c34e0a4a526d6498.tar.gz rust-c199790077587e88445b0244c34e0a4a526d6498.zip | |
rustc: Move util::sha2 to rustc_back
| -rw-r--r-- | src/librustc/lib.rs | 2 | ||||
| -rw-r--r-- | src/librustc_back/lib.rs | 5 | ||||
| -rw-r--r-- | src/librustc_back/sha2.rs (renamed from src/librustc/util/sha2.rs) | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs index 016af688c50..99eed04b558 100644 --- a/src/librustc/lib.rs +++ b/src/librustc/lib.rs @@ -126,10 +126,10 @@ pub mod lint; pub mod util { pub use rustc_back::fs; + pub use rustc_back::sha2; pub mod common; pub mod ppaux; - pub mod sha2; pub mod nodemap; } diff --git a/src/librustc_back/lib.rs b/src/librustc_back/lib.rs index 00791b39bca..8ec74f4d6ef 100644 --- a/src/librustc_back/lib.rs +++ b/src/librustc_back/lib.rs @@ -32,8 +32,7 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/")] -#![feature(globs)] -#![feature(phase)] +#![feature(globs, phase, macro_rules)] #![allow(unused_attribute)] // NOTE: remove after stage0 #[phase(plugin, link)] @@ -41,6 +40,7 @@ extern crate log; extern crate syntax; extern crate libc; extern crate flate; +extern crate serialize; pub mod abi; pub mod archive; @@ -49,6 +49,7 @@ pub mod fs; pub mod mips; pub mod mipsel; pub mod rpath; +pub mod sha2; pub mod svh; pub mod target_strs; pub mod x86; diff --git a/src/librustc/util/sha2.rs b/src/librustc_back/sha2.rs index bfd3deb0f2d..681de6a6626 100644 --- a/src/librustc/util/sha2.rs +++ b/src/librustc_back/sha2.rs @@ -12,6 +12,8 @@ //! use. This implementation is not intended for external use or for any use where security is //! important. +#![allow(deprecated)] // to_be32 + use std::iter::range_step; use std::num::Zero; use std::slice::bytes::{MutableByteVector, copy_memory}; |
