about summary refs log tree commit diff
path: root/src/librustc_data_structures/small_vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_data_structures/small_vec.rs')
-rw-r--r--src/librustc_data_structures/small_vec.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_data_structures/small_vec.rs b/src/librustc_data_structures/small_vec.rs
index 74738e61b44..83eb54fade1 100644
--- a/src/librustc_data_structures/small_vec.rs
+++ b/src/librustc_data_structures/small_vec.rs
@@ -50,6 +50,10 @@ impl<A: Array> SmallVec<A> {
         SmallVec(AccumulateVec::new())
     }
 
+    pub fn is_array(&self) -> bool {
+        self.0.is_array()
+    }
+
     pub fn with_capacity(cap: usize) -> Self {
         let mut vec = SmallVec::new();
         vec.reserve(cap);