summaryrefslogtreecommitdiff
path: root/src/vec.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/vec.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/vec.rs b/src/vec.rs
index cc8202b7..909e69d6 100644
--- a/src/vec.rs
+++ b/src/vec.rs
@@ -901,29 +901,6 @@ mod tests {
assert!(v.is_full());
}
- macro_rules! droppable {
- () => {
- struct Droppable;
- impl Droppable {
- fn new() -> Self {
- unsafe {
- COUNT += 1;
- }
- Droppable
- }
- }
- impl Drop for Droppable {
- fn drop(&mut self) {
- unsafe {
- COUNT -= 1;
- }
- }
- }
-
- static mut COUNT: i32 = 0;
- };
- }
-
#[test]
fn drop() {
droppable!();