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.
1 parent aa4e896 commit 444f54eCopy full SHA for 444f54e
gc/src/trace.rs
@@ -20,7 +20,7 @@ pub trait Finalize {
20
/// Ensures type has no custom Drop implementation, without implementing it itself
21
/// In case of Drop implementation present, obscure compilation error will be raised
22
pub unsafe trait TriviallyDrop {
23
- unsafe fn guard(self);
+ fn guard(self);
24
}
25
26
#[cfg(feature = "nightly")]
gc_derive/src/lib.rs
@@ -84,7 +84,7 @@ fn derive_trace(mut s: Structure<'_>) -> proc_macro2::TokenStream {
84
let trivially_drop_impl = s.unsafe_bound_impl(
85
quote!(::gc::TriviallyDrop),
86
quote!(
87
- unsafe fn guard(self) {
+ fn guard(self) {
88
match self {
89
#trivially_drop_body
90
0 commit comments