diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-13 14:36:59 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-13 14:36:59 +0100 |
commit | 0f0b6d6e97ede76693f4d48b90ee04ad7126069b (patch) | |
tree | b2bcf8091444187d543a635d576561d51034e32b /libbindgen/tests | |
parent | 883ff74e5f20b68b41f322daa582d9208eece65a (diff) |
codegen: Rename the temporary variable in constructors for __bindgen_tmp, to avoid potential conflicts.
Diffstat (limited to 'libbindgen/tests')
-rw-r--r-- | libbindgen/tests/expectations/tests/constructors.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libbindgen/tests/expectations/tests/constructors.rs b/libbindgen/tests/expectations/tests/constructors.rs index 80c14057..95afb82d 100644 --- a/libbindgen/tests/expectations/tests/constructors.rs +++ b/libbindgen/tests/expectations/tests/constructors.rs @@ -29,15 +29,15 @@ impl Clone for TestOverload { impl TestOverload { #[inline] pub unsafe fn new(arg1: ::std::os::raw::c_int) -> Self { - let mut tmp = ::std::mem::uninitialized(); - TestOverload_TestOverload(&mut tmp, arg1); - tmp + let mut __bindgen_tmp = ::std::mem::uninitialized(); + TestOverload_TestOverload(&mut __bindgen_tmp, arg1); + __bindgen_tmp } #[inline] pub unsafe fn new1(arg1: f64) -> Self { - let mut tmp = ::std::mem::uninitialized(); - TestOverload_TestOverload1(&mut tmp, arg1); - tmp + let mut __bindgen_tmp = ::std::mem::uninitialized(); + TestOverload_TestOverload1(&mut __bindgen_tmp, arg1); + __bindgen_tmp } } #[repr(C)] @@ -60,8 +60,8 @@ impl Clone for TestPublicNoArgs { impl TestPublicNoArgs { #[inline] pub unsafe fn new() -> Self { - let mut tmp = ::std::mem::uninitialized(); - TestPublicNoArgs_TestPublicNoArgs(&mut tmp); - tmp + let mut __bindgen_tmp = ::std::mem::uninitialized(); + TestPublicNoArgs_TestPublicNoArgs(&mut __bindgen_tmp); + __bindgen_tmp } } |