[tor-commits] [tor/maint-0.3.4] rust: Add comment and pragma on "unused" smartlist_t type.

nickm at torproject.org nickm at torproject.org
Sat Jun 16 14:20:33 UTC 2018

commit d5a9b77a2892f195d391376f98287714d455ce5b
Author: Isis Lovecruft <isis at torproject.org>
Date:   Fri Jun 15 22:49:05 2018 +0000

    rust: Add comment and pragma on "unused" smartlist_t type.
     * FIXES part of #26245: https://bugs.torproject.org/26245
 src/rust/external/crypto_digest.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/rust/external/crypto_digest.rs b/src/rust/external/crypto_digest.rs
index bc49e6124..b55389ac5 100644
--- a/src/rust/external/crypto_digest.rs
+++ b/src/rust/external/crypto_digest.rs
@@ -117,6 +117,9 @@ struct common_digests_t {
 /// A `smartlist_t` is just an alias for the `#[repr(C)]` type `Stringlist`, to
 /// make it more clear that we're working with a smartlist which is owned by C.
+// BINDGEN_GENERATED: This type isn't actually bindgen generated, but the code
+// below it which uses it is.  As such, this comes up as "dead code" as well.
 type smartlist_t = Stringlist;
 /// All of the external functions from `src/common/crypto_digest.h`.

More information about the tor-commits mailing list