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 9d07a4b commit 9864cbfCopy full SHA for 9864cbf
src/manually_traced/stdalloc.rs
@@ -6,6 +6,7 @@ use alloc::rc::Rc;
6
use alloc::sync::Arc;
7
use alloc::vec::Vec;
8
use alloc::boxed::Box;
9
+use alloc::string::String;
10
11
use crate::prelude::*;
12
@@ -15,3 +16,5 @@ unsafe_trace_deref!(Box, target = T);
15
16
// We can only trace `Rc` and `Arc` if the inner type implements `TraceImmutable`
17
unsafe_trace_deref!(Rc, T; immut = required; |rc| &**rc);
18
unsafe_trace_deref!(Arc, T; immut = required; |arc| &**arc);
19
+// String is a primitive with no internal references
20
+unsafe_trace_primitive!(String);
0 commit comments