Skip to content

Commit

Permalink
Arbitrary self types v2: stabilize in miri
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Mar 5, 2025
1 parent 44b320f commit 4faaac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/miri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#![feature(unqualified_local_imports)]
#![feature(derive_coerce_pointee)]
#![feature(arbitrary_self_types)]
#![cfg_attr(bootstrap,feature(legacy_receiver_trait))]
// Configure clippy and other lints
#![allow(
clippy::collapsible_else_if,
Expand Down
4 changes: 4 additions & 0 deletions src/tools/miri/src/shims/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ impl<T: ?Sized> Deref for FileDescriptionRef<T> {
}
}

#[cfg(bootstrap)]
impl<T: ?Sized> core::ops::LegacyReceiver for FileDescriptionRef<T> {
}

impl<T: ?Sized> FileDescriptionRef<T> {
pub fn id(&self) -> FdId {
self.0.id
Expand Down

0 comments on commit 4faaac4

Please sign in to comment.