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 Feb 6, 2025
1 parent 5a520aa commit d3ea8f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/miri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#![feature(pointer_is_aligned_to)]
#![feature(unqualified_local_imports)]
#![feature(derive_coerce_pointee)]
#![feature(arbitrary_self_types)]
#![cfg_attr(bootstrap,feature(legacy_receiver_trait))]
#![feature(unsigned_is_multiple_of)]
#![feature(extract_if)]
// Configure clippy and other lints
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 d3ea8f4

Please sign in to comment.