summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorJames Miller <james@aatch.net>2016-03-11 13:14:51 +1300
committerJames Miller <james@aatch.net>2016-03-30 12:57:43 +1300
commit60a28e60aa6eb0ed074fa5e6875e60cb2f038605 (patch)
treefe572364bef129b0554a0adad5173a97f60e762d /src/librustc_data_structures
parent8f5c3f1fcf77ec890d340dc3beb676f2a01ae99c (diff)
downloadrust-60a28e60aa6eb0ed074fa5e6875e60cb2f038605.tar.gz
rust-60a28e60aa6eb0ed074fa5e6875e60cb2f038605.zip
Add some standard traversal iterators for MIR
Adds Preorder, Postorder and Reverse Postorder traversal iterators.

Also makes trans/mir use Reverse Postorder traversal for blocks.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/bitvec.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_data_structures/bitvec.rs b/src/librustc_data_structures/bitvec.rs
index 3677c8c5e59..e45c6cfc6dc 100644
--- a/src/librustc_data_structures/bitvec.rs
+++ b/src/librustc_data_structures/bitvec.rs
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 /// A very simple BitVector type.
+#[derive(Clone)]
 pub struct BitVector {
     data: Vec<u64>,
 }