File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -696,6 +696,7 @@ impl CString {
696696// memory-unsafe code from working by accident. Inline
697697// to prevent LLVM from optimizing it away in debug builds.
698698#[ stable( feature = "cstring_drop" , since = "1.13.0" ) ]
699+ #[ rustc_insignificant_dtor]
699700impl Drop for CString {
700701 #[ inline]
701702 fn drop ( & mut self ) {
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ const TAG_SIMPLE: usize = 0b11;
124124/// is_unwind_safe::<std::io::Error>();
125125/// ```
126126#[ repr( transparent) ]
127+ #[ rustc_insignificant_dtor]
127128pub ( super ) struct Repr ( NonNull < ( ) > , PhantomData < ErrorData < Box < Custom > > > ) ;
128129
129130// All the types `Repr` stores internally are Send + Sync, and so is it.
You can’t perform that action at this time.
0 commit comments