about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-27 11:59:35 -0400
committerMichael Goulet <michael@errs.io>2024-09-27 11:59:39 -0400
commit24290efafffb83514da4e37f5f42a962d0e9bb1f (patch)
tree1909de29c397efc01571b926ce7d8ce76d9c6f97
parent7033468a67c0e39b2e34de2b43f78a29d101861d (diff)
downloadrust-24290efafffb83514da4e37f5f42a962d0e9bb1f.tar.gz
rust-24290efafffb83514da4e37f5f42a962d0e9bb1f.zip
Mark some more smart pointers as insignificant
-rw-r--r--library/alloc/src/boxed.rs1
-rw-r--r--library/alloc/src/sync.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
index 6421504b896..5f207295683 100644
--- a/library/alloc/src/boxed.rs
+++ b/library/alloc/src/boxed.rs
@@ -228,6 +228,7 @@ mod thin;
 #[lang = "owned_box"]
 #[fundamental]
 #[stable(feature = "rust1", since = "1.0.0")]
+#[rustc_insignificant_dtor]
 // The declaration of the `Box` struct must be kept in sync with the
 // compiler or ICEs will happen.
 pub struct Box<
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index ced789c4f92..5d099a49854 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -237,6 +237,7 @@ macro_rules! acquire {
 /// [rc_examples]: crate::rc#examples
 #[cfg_attr(not(test), rustc_diagnostic_item = "Arc")]
 #[stable(feature = "rust1", since = "1.0.0")]
+#[rustc_insignificant_dtor]
 pub struct Arc<
     T: ?Sized,
     #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,