We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0443a0 + 481ff4d commit 2d329f1Copy full SHA for 2d329f1
zeroize_derive/src/lib.rs
@@ -77,7 +77,10 @@ impl DeriveAttrs {
77
if ident == "drop" {
78
self.set_drop_flag(true);
79
} else if ident == "no_drop" {
80
- self.set_drop_flag(false);
+ eprintln!(
81
+ "warning: use of deprecated attribute #[zeroize(no_drop)]: \
82
+ has no effect and will be removed in zeroize 1.0"
83
+ );
84
} else {
85
panic!("unknown #[zeroize] attribute type: {}", ident);
86
}
0 commit comments