about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-26 22:10:04 -0400
committerMichael Goulet <michael@errs.io>2024-09-27 11:59:39 -0400
commit7033468a67c0e39b2e34de2b43f78a29d101861d (patch)
tree06a3f36d65ded1aad84059c8b9cabafd9cf7652d /library/alloc/src
parenta3f76a26e045a760bb1163b7eab36872985242d5 (diff)
downloadrust-7033468a67c0e39b2e34de2b43f78a29d101861d.tar.gz
rust-7033468a67c0e39b2e34de2b43f78a29d101861d.zip
Mark some more types as having insignificant dtor
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/ffi/c_str.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/ffi/c_str.rs b/library/alloc/src/ffi/c_str.rs
index 797d591a8b5..d496899e72b 100644
--- a/library/alloc/src/ffi/c_str.rs
+++ b/library/alloc/src/ffi/c_str.rs
@@ -696,6 +696,7 @@ impl CString {
 // memory-unsafe code from working by accident. Inline
 // to prevent LLVM from optimizing it away in debug builds.
 #[stable(feature = "cstring_drop", since = "1.13.0")]
+#[rustc_insignificant_dtor]
 impl Drop for CString {
     #[inline]
     fn drop(&mut self) {