Skip to content

Commit 9d6e120

Browse files
committed
remove from impl block in std
1 parent f1b4c2a commit 9d6e120

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/alloc/src/ffi/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ use crate::vec::Vec;
103103
/// and other memory errors.
104104
#[derive(PartialEq, PartialOrd, Eq, Ord, Hash, Clone)]
105105
#[rustc_diagnostic_item = "cstring_type"]
106+
#[rustc_insignificant_dtor]
106107
#[stable(feature = "alloc_c_string", since = "1.64.0")]
107108
pub struct CString {
108109
// Invariant 1: the slice ends with a zero byte and has a length of at least one.
@@ -694,7 +695,6 @@ impl CString {
694695
// memory-unsafe code from working by accident. Inline
695696
// to prevent LLVM from optimizing it away in debug builds.
696697
#[stable(feature = "cstring_drop", since = "1.13.0")]
697-
#[rustc_insignificant_dtor]
698698
impl Drop for CString {
699699
#[inline]
700700
fn drop(&mut self) {

0 commit comments

Comments
 (0)