summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-06-15 22:49:05 +0000
committerIsis Lovecruft <isis@torproject.org>2018-06-15 22:49:39 +0000
commitd5a9b77a2892f195d391376f98287714d455ce5b (patch)
tree49b9b2479761853f457cf56e758908703533cfc4 /src
parent468bf58fa24d78bef8d0d017dcacb7da4c031c12 (diff)
downloadtor-d5a9b77a2892f195d391376f98287714d455ce5b.tar.gz
tor-d5a9b77a2892f195d391376f98287714d455ce5b.zip
rust: Add comment and pragma on "unused" smartlist_t type.
* FIXES part of #26245: https://bugs.torproject.org/26245
Diffstat (limited to 'src')
-rw-r--r--src/rust/external/crypto_digest.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rust/external/crypto_digest.rs b/src/rust/external/crypto_digest.rs
index bc49e6124c..b55389ac51 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.
#[allow(non_camel_case_types)]
+// 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.
+#[allow(dead_code)]
type smartlist_t = Stringlist;
/// All of the external functions from `src/common/crypto_digest.h`.