Repository: ezrosent/allocators-rs (language: rust)

Issue:
Upgrade interpolate_idents
Upgrade to a new version of `interpolate_idents` once https://github.com/SkylerLipthay/interpolate_idents/issues/28 is fixed.


Discussion / hints:

Fix patch:
diff --git a/alloc-tls/src/lib.rs b/alloc-tls/src/lib.rs
index f4b49f0..ef09b03 100644
--- a/alloc-tls/src/lib.rs
+++ b/alloc-tls/src/lib.rs
@@ -1,4 +1,4 @@
-// Copyright 2017 the authors. See the 'Copyright and license' section of the
+// Copyright 2017-2018 the authors. See the 'Copyright and license' section of the
 // README.md file at the top-level directory of this repository.
 //
 // Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or
@@ -386,7 +386,7 @@ mod tests {
     fn bench_tls(b: &mut Bencher) {
         alloc_thread_local!{ static FOO: UnsafeCell<usize> = UnsafeCell::new(0); }
         b.iter(|| unsafe {
-            FOO.with(|foo| unsafe {
+            FOO.with(|foo| {
                 let inner = foo.get();
                 (*inner) += 1;
                 black_box(*inner);
diff --git a/elfmalloc/src/vec_alloc.rs b/elfmalloc/src/vec_alloc.rs
index 9d9cd32..5df3472 100644
--- a/elfmalloc/src/vec_alloc.rs
+++ b/elfmalloc/src/vec_alloc.rs
@@ -1,4 +1,4 @@
-// Copyright 2017 the authors. See the 'Copyright and license' section of the
+// Copyright 2017-2018 the authors. See the 'Copyright and license' section of the
 // README.md file at the top-level directory of this repository.
 //
 // Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or
@@ -384,7 +384,7 @@ mod tests {
     fn bench_extend<V: VecLike<usize> + Default>(b: &mut Bencher) {
         #[inline(never)]
         fn extend_noinline<V: VecLike<usize>>(vec: &mut V) {
-            vec.extend((0..(1 << 10)));
+            vec.extend(0..(1 << 10));
         }
         b.iter(|| {
             let mut vec = V::default();
diff --git a/slab-alloc/Cargo.toml b/slab-alloc/Cargo.toml
index 4f618ed..d649fd9 100644
--- a/slab-alloc/Cargo.toml
+++ b/slab-alloc/Cargo.toml
@@ -1,4 +1,4 @@
-# Copyright 2017 the authors. See the 'Copyright and license' section of the
+# Copyright 2017-2018 the authors. See the 'Copyright and license' section of the
 # README.md file at the top-level directory of this repository.
 #
 # Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or
@@ -39,7 +39,7 @@ hashmap-no-resize = []
 hashmap-no-coalesce = []
 
 [dependencies]
-interpolate_idents = "0.1.8"
+interpolate_idents = "0.2.2"
 lazy_static = { version = "1.0.0", features = ["spin_no_std"] }
 mmap-alloc = "0.1.0"
 object-alloc = "0.1.0"


Test patch:
diff --git a/object-alloc-test/Cargo.toml b/object-alloc-test/Cargo.toml
index 5d60b0f..7d0bc74 100644
--- a/object-alloc-test/Cargo.toml
+++ b/object-alloc-test/Cargo.toml
@@ -1,4 +1,4 @@
-# Copyright 2017 the authors. See the 'Copyright and license' section of the
+# Copyright 2017-2018 the authors. See the 'Copyright and license' section of the
 # README.md file at the top-level directory of this repository.
 #
 # Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or
@@ -22,7 +22,7 @@ repository = "https://github.com/ezrosent/allocators-rs/tree/master/object-alloc
 exclude = ["appveyor.sh", "travis.sh"]
 
 [dependencies]
-interpolate_idents = "0.1.8"
+interpolate_idents = "0.2.2"
 lazy_static = "1.0.0"
 libc = "0.2"
 object-alloc = "0.1.0"
diff --git a/object-alloc-test/src/corruption.rs b/object-alloc-test/src/corruption.rs
index 7bef274..e45a27b 100644
--- a/object-alloc-test/src/corruption.rs
+++ b/object-alloc-test/src/corruption.rs
@@ -1,4 +1,4 @@
-// Copyright 2017 the authors. See the 'Copyright and license' section of the
+// Copyright 2017-2018 the authors. See the 'Copyright and license' section of the
 // README.md file at the top-level directory of this repository.
 //
 // Licensed under the Apache License, Version 2.0 (the LICENSE-APACHE file) or
@@ -390,7 +390,7 @@ impl<T: Copy> CorruptionTester<T> {
 
         unsafe {
             let ptr = self as *const CorruptionTester<T> as usize;
-            (transmute(ptr), from_raw_parts((ptr + header_size) as *const u8, (size - header_size)))
+            (transmute(ptr), from_raw_parts((ptr + header_size) as *const u8, size - header_size))
         }
     }
 
@@ -405,7 +405,7 @@ impl<T: Copy> CorruptionTester<T> {
         unsafe {
             let ptr = self as *mut CorruptionTester<T> as usize;
             (transmute(ptr),
-             from_raw_parts_mut((ptr + header_size) as *mut u8, (size - header_size)))
+             from_raw_parts_mut((ptr + header_size) as *mut u8, size - header_size))
         }
     }