Skip to content

Commit 52582ec

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 e7b03ee commit 52582ec

File tree

3 files changed

+2
-5171
lines changed

3 files changed

+2
-5171
lines changed

rust/alloc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ pub mod collections;
178178
pub mod fmt;
179179
pub mod prelude;
180180
pub mod raw_vec;
181+
#[cfg(not(CONFIG_RUST))]
181182
pub mod rc;
182183
pub mod slice;
183184
pub mod str;
184185
pub mod string;
185-
#[cfg(target_has_atomic = "ptr")]
186+
#[cfg(all(target_has_atomic = "ptr", not(CONFIG_RUST)))]
186187
pub mod sync;
187188
#[cfg(all(not(no_global_oom_handling), target_has_atomic = "ptr"))]
188189
pub mod task;

0 commit comments

Comments
 (0)