Skip to content

Commit f018d13

Browse files
(not to be included in commit message) do not impl PinCoerceUnsized
1 parent 728b5fd commit f018d13

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

rust/kernel/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
1414
#![no_std]
1515
#![feature(arbitrary_self_types)]
16-
#![cfg_attr(
17-
CONFIG_RUST_COERCE_POINTEE,
18-
feature(derive_coerce_pointee, pin_coerce_unsized_trait)
19-
)]
16+
#![cfg_attr(CONFIG_RUST_COERCE_POINTEE, feature(derive_coerce_pointee))]
2017
#![cfg_attr(
2118
not(CONFIG_RUST_COERCE_POINTEE),
2219
feature(coerce_unsized, dispatch_from_dyn, unsize)

rust/kernel/list/arc.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,6 @@ where
462462
{
463463
}
464464

465-
/// `ListArc` is well-behaved so that its dereferencing operation does not mutate.
466-
#[cfg(CONFIG_RUST_COERCE_POINTEE)]
467-
unsafe impl<T: ?Sized + ListArcSafe<ID>, const ID: u64> core::pin::PinCoerceUnsized
468-
for ListArc<T, ID>
469-
{
470-
}
471-
472465
/// A utility for tracking whether a [`ListArc`] exists using an atomic.
473466
///
474467
/// # Invariant

0 commit comments

Comments
 (0)