diff options
author | David Tolnay <dtolnay@gmail.com> | 2020-12-27 02:51:51 -0800 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2020-12-27 13:29:06 -0800 |
commit | e1df7ddba0f819b8fb4ce8f3cb9ddf9ad4d6e037 (patch) | |
tree | 9d689d4ea29436ef0ae9f73b3bd6478bc2472f27 /src/cxx.cc | |
parent | d5e3ef8d73447545646d846408642c091aed2e25 (diff) | |
download | cxx-e1df7ddba0f819b8fb4ce8f3cb9ddf9ad4d6e037.tar.gz |
Eliminate Vec stride symbol in favor of size_of
Diffstat (limited to 'src/cxx.cc')
-rw-r--r-- | src/cxx.cc | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -450,8 +450,7 @@ static_assert(sizeof(std::string) <= kMaxExpectedWordsInString * sizeof(void *), void cxxbridge1$rust_vec$##RUST_TYPE##$reserve_total( \ rust::Vec<CXX_TYPE> *ptr, std::size_t cap) noexcept; \ void cxxbridge1$rust_vec$##RUST_TYPE##$set_len(rust::Vec<CXX_TYPE> *ptr, \ - std::size_t len) noexcept; \ - std::size_t cxxbridge1$rust_vec$##RUST_TYPE##$stride() noexcept; + std::size_t len) noexcept; #define RUST_VEC_OPS(RUST_TYPE, CXX_TYPE) \ template <> \ @@ -481,10 +480,6 @@ static_assert(sizeof(std::string) <= kMaxExpectedWordsInString * sizeof(void *), template <> \ void Vec<CXX_TYPE>::set_len(std::size_t len) noexcept { \ cxxbridge1$rust_vec$##RUST_TYPE##$set_len(this, len); \ - } \ - template <> \ - std::size_t Vec<CXX_TYPE>::stride() noexcept { \ - return cxxbridge1$rust_vec$##RUST_TYPE##$stride(); \ } #define SHARED_PTR_OPS(RUST_TYPE, CXX_TYPE) \ |