Skip to content

Commit

Permalink
Update crates and submodules to pull doc fixes
Browse files Browse the repository at this point in the history
Update `rand` crate to `0.3.19`.
Update `log` crate to `0.3.9` and `0.4.1`.
Update `parking_lot_core` crate to `0.2.9`.
Upgrade all flate2 dependencies to `1.0.1`.
- Update `rust-installer` submodule.
  • Loading branch information
MaloJaffre committed Jan 1, 2018
1 parent 0b177b4 commit 8ed13d6
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 86 deletions.
156 changes: 78 additions & 78 deletions src/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/librustc/Cargo.toml
Expand Up @@ -54,4 +54,4 @@ byteorder = { version = "1.1", features = ["i128"]}
# tl;dr; this is not needed to get `rustc` to compile, but if you remove it then
# later crate stop compiling. If you can remove this and everything
# compiles, then please feel free to do so!
flate2 = "0.2"
flate2 = "1.0"
2 changes: 1 addition & 1 deletion src/librustc_metadata/Cargo.toml
Expand Up @@ -9,7 +9,7 @@ path = "lib.rs"
crate-type = ["dylib"]

[dependencies]
flate2 = "0.2"
flate2 = "1.0"
log = "0.3"
proc_macro = { path = "../libproc_macro" }
rustc = { path = "../librustc" }
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_trans/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ test = false

[dependencies]
bitflags = "1.0"
flate2 = "0.2"
flate2 = "1.0"
jobserver = "0.1.5"
log = "0.3"
num_cpus = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_trans/back/bytecode.rs
Expand Up @@ -74,7 +74,7 @@ pub fn encode(identifier: &str, bytecode: &[u8]) -> Vec<u8> {
encoded.extend_from_slice(&[0, 0, 0, 0, 0, 0, 0, 0]);

let before = encoded.len();
DeflateEncoder::new(&mut encoded, Compression::Fast)
DeflateEncoder::new(&mut encoded, Compression::fast())
.write_all(bytecode)
.unwrap();
let after = encoded.len();
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_trans/base.rs
Expand Up @@ -651,7 +651,7 @@ fn write_metadata<'a, 'gcx>(tcx: TyCtxt<'a, 'gcx, 'gcx>,

assert!(kind == MetadataKind::Compressed);
let mut compressed = tcx.metadata_encoding_version();
DeflateEncoder::new(&mut compressed, Compression::Fast)
DeflateEncoder::new(&mut compressed, Compression::fast())
.write_all(&metadata.raw_data).unwrap();

let llmeta = C_bytes_in_context(metadata_llcx, &compressed);
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_trans_utils/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ test = false

[dependencies]
ar = "0.3.0"
flate2 = "0.2"
flate2 = "1.0"
log = "0.3"

syntax = { path = "../libsyntax" }
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_trans_utils/trans_crate.rs
Expand Up @@ -225,7 +225,7 @@ impl TransCrate for MetadataOnlyTransCrate {
out_filename(sess, crate_type, &outputs, &trans.0.crate_name.as_str());
let mut compressed = trans.0.metadata_version.clone();
let metadata = if crate_type == CrateType::CrateTypeDylib {
DeflateEncoder::new(&mut compressed, Compression::Fast)
DeflateEncoder::new(&mut compressed, Compression::fast())
.write_all(&trans.0.metadata.raw_data)
.unwrap();
&compressed
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rust-installer

0 comments on commit 8ed13d6

Please sign in to comment.