about summary refs log tree commit diff
path: root/src/libsyntax/lib.rs
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2018-07-30 08:58:14 -0600
committerMark Rousskov <mark.simulacrum@gmail.com>2018-08-01 06:50:40 -0600
commit9bc4fbb10a1517c2ac5a4c9b0ae3ac6559c90a0d (patch)
tree60a31a751d69a5f8b87177f77d2cd1b261f63299 /src/libsyntax/lib.rs
parent1d64b241cdca1477cc4c87b3751326212ebf78f6 (diff)
downloadrust-9bc4fbb10a1517c2ac5a4c9b0ae3ac6559c90a0d.tar.gz
rust-9bc4fbb10a1517c2ac5a4c9b0ae3ac6559c90a0d.zip
Split out growth functionality into BitVector type
Diffstat (limited to 'src/libsyntax/lib.rs')
-rw-r--r--src/libsyntax/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 16507ec5a5d..0c105865e0c 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -87,8 +87,8 @@ impl Globals {
         Globals {
             // We have no idea how many attributes their will be, so just
             // initiate the vectors with 0 bits. We'll grow them as necessary.
-            used_attrs: Lock::new(BitVector::new(0)),
-            known_attrs: Lock::new(BitVector::new(0)),
+            used_attrs: Lock::new(BitVector::new()),
+            known_attrs: Lock::new(BitVector::new()),
             syntax_pos_globals: syntax_pos::Globals::new(),
         }
     }