Skip to content

Commit

Permalink
rustc: Move util::sha2 to rustc_back
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jul 14, 2014
1 parent 46266bd commit c199790
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
5 changes: 3 additions & 2 deletions src/librustc_back/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
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)]
extern crate log;
extern crate syntax;
extern crate libc;
extern crate flate;
extern crate serialize;

pub mod abi;
pub mod archive;
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/librustc/util/sha2.rs → src/librustc_back/sha2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit c199790

Please sign in to comment.