Skip to content

Commit 21a1371

Browse files
committed
---
yaml --- r: 278119 b: refs/heads/auto c: 78884b7 h: refs/heads/master i: 278117: 2a4e4b0 278115: 5d1300d 278111: 41eb738
1 parent 204fab7 commit 21a1371

File tree

19 files changed

+1896
-785
lines changed

19 files changed

+1896
-785
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 14efbf148109888f939f671fbd5b60650c5f4744
11+
refs/heads/auto: 78884b765915c551e5f3fe71b185d91ec4c186de
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ DEPS_rustc_lint := rustc log syntax rustc_const_eval
111111
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
112112
DEPS_rustc_metadata := rustc syntax rbml rustc_const_math
113113
DEPS_rustc_passes := syntax rustc core rustc_const_eval
114-
DEPS_rustc_mir := rustc syntax rustc_const_math rustc_const_eval
114+
DEPS_rustc_mir := rustc syntax rustc_const_math rustc_const_eval rustc_bitflags
115115
DEPS_rustc_resolve := arena rustc log syntax
116116
DEPS_rustc_platform_intrinsics := std
117117
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir

branches/auto/src/librustc_driver/driver.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use rustc_privacy;
3737
use rustc_plugin::registry::Registry;
3838
use rustc_plugin as plugin;
3939
use rustc::hir::lowering::{lower_crate, LoweringContext};
40-
use rustc_passes::{no_asm, loops, consts, const_fn, rvalues, static_recursion};
40+
use rustc_passes::{no_asm, loops, consts, rvalues, static_recursion};
4141
use rustc_const_eval::check_match;
4242
use super::Compilation;
4343

@@ -726,10 +726,6 @@ pub fn phase_2_configure_and_expand(sess: &Session,
726726
})
727727
})?;
728728

729-
time(time_passes,
730-
"const fn bodies and arguments",
731-
|| const_fn::check_crate(sess, &krate))?;
732-
733729
if sess.opts.debugging_opts.input_stats {
734730
println!("Post-expansion node count: {}", count_nodes(&krate));
735731
}
@@ -903,6 +899,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
903899
let mut passes = sess.mir_passes.borrow_mut();
904900
// Push all the built-in passes.
905901
passes.push_pass(box mir::transform::remove_dead_blocks::RemoveDeadBlocks);
902+
passes.push_pass(box mir::transform::qualify_consts::QualifyAndPromoteConstants);
906903
passes.push_pass(box mir::transform::type_check::TypeckMir);
907904
passes.push_pass(box mir::transform::simplify_cfg::SimplifyCfg);
908905
passes.push_pass(box mir::transform::remove_dead_blocks::RemoveDeadBlocks);

branches/auto/src/librustc_mir/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ rustc_back = { path = "../librustc_back" }
1616
rustc_const_eval = { path = "../librustc_const_eval" }
1717
rustc_const_math = { path = "../librustc_const_math" }
1818
rustc_data_structures = { path = "../librustc_data_structures" }
19+
rustc_bitflags = { path = "../librustc_bitflags" }
1920
syntax = { path = "../libsyntax" }

branches/auto/src/librustc_mir/build/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub struct ScopeAuxiliary {
8484
pub postdoms: Vec<Location>,
8585
}
8686

87-
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
87+
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
8888
pub struct Location {
8989
/// the location is within this block
9090
pub block: BasicBlock,

0 commit comments

Comments
 (0)