diff --git a/src/compiler/rust/smallvec.rs b/src/compiler/rust/smallvec.rs index e38fbab1fbe..00d9f7e9a5c 100644 --- a/src/compiler/rust/smallvec.rs +++ b/src/compiler/rust/smallvec.rs @@ -113,3 +113,14 @@ impl std::ops::DerefMut for SmallVec { } } } + +impl Extend for SmallVec { + fn extend(&mut self, iter: I) + where + I: IntoIterator, + { + for i in iter { + self.push(i) + } + } +}