Skip to content

Commit 0f91530

Browse files
committed
rust: alloc: remove reference-counted wrappers from the alloc crate.
These are no longer used anywhere in the kernel. Signed-off-by: Wedson Almeida Filho <[email protected]>
1 parent 47ebde5 commit 0f91530

File tree

3 files changed

+2
-5191
lines changed

3 files changed

+2
-5191
lines changed

rust/alloc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,12 @@ pub mod collections;
180180
pub mod fmt;
181181
pub mod prelude;
182182
pub mod raw_vec;
183+
#[cfg(not(CONFIG_RUST))]
183184
pub mod rc;
184185
pub mod slice;
185186
pub mod str;
186187
pub mod string;
187-
#[cfg(target_has_atomic = "ptr")]
188+
#[cfg(all(target_has_atomic = "ptr", not(CONFIG_RUST)))]
188189
pub mod sync;
189190
#[cfg(all(not(no_global_oom_handling), target_has_atomic = "ptr"))]
190191
pub mod task;

0 commit comments

Comments
 (0)