Skip to content

Commit c199790

Browse files
committed
rustc: Move util::sha2 to rustc_back
1 parent 46266bd commit c199790

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/librustc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ pub mod lint;
126126

127127
pub mod util {
128128
pub use rustc_back::fs;
129+
pub use rustc_back::sha2;
129130

130131
pub mod common;
131132
pub mod ppaux;
132-
pub mod sha2;
133133
pub mod nodemap;
134134
}
135135

src/librustc_back/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
3333
html_root_url = "http://doc.rust-lang.org/")]
3434

35-
#![feature(globs)]
36-
#![feature(phase)]
35+
#![feature(globs, phase, macro_rules)]
3736
#![allow(unused_attribute)] // NOTE: remove after stage0
3837

3938
#[phase(plugin, link)]
4039
extern crate log;
4140
extern crate syntax;
4241
extern crate libc;
4342
extern crate flate;
43+
extern crate serialize;
4444

4545
pub mod abi;
4646
pub mod archive;
@@ -49,6 +49,7 @@ pub mod fs;
4949
pub mod mips;
5050
pub mod mipsel;
5151
pub mod rpath;
52+
pub mod sha2;
5253
pub mod svh;
5354
pub mod target_strs;
5455
pub mod x86;

src/librustc/util/sha2.rs renamed to src/librustc_back/sha2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//! use. This implementation is not intended for external use or for any use where security is
1313
//! important.
1414
15+
#![allow(deprecated)] // to_be32
16+
1517
use std::iter::range_step;
1618
use std::num::Zero;
1719
use std::slice::bytes::{MutableByteVector, copy_memory};

0 commit comments

Comments
 (0)