about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-06-05 03:12:38 -0700
committerbors <bors@rust-lang.org>2016-06-05 03:12:38 -0700
commit22b36c70f936c647a589c266060651fb7cf1164f (patch)
tree854dde10da33410f58b3d882b03ebeb02507c256 /src/librustc_data_structures
parentf97c411548f2b64f74f2bcb84dcc37075c05e2a0 (diff)
parentd4551ece5f5a318f24c16368fcea9d67b64c41ff (diff)
downloadrust-22b36c70f936c647a589c266060651fb7cf1164f.tar.gz
rust-22b36c70f936c647a589c266060651fb7cf1164f.zip
Auto merge of #33999 - scottcarr:master, r=nikomatsakis
generate fewer basic blocks for variant switches

CC #33567
Adds a new field to TestKind::Switch that tracks the variants that are actually matched against.  The other candidates target a common "otherwise" block.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/bitvec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_data_structures/bitvec.rs b/src/librustc_data_structures/bitvec.rs
index cb648038c34..79d3f0cf688 100644
--- a/src/librustc_data_structures/bitvec.rs
+++ b/src/librustc_data_structures/bitvec.rs
@@ -11,7 +11,7 @@
 use std::iter::FromIterator;
 
 /// A very simple BitVector type.
-#[derive(Clone)]
+#[derive(Clone, Debug, PartialEq)]
 pub struct BitVector {
     data: Vec<u64>,
 }