Skip to content

Commit 0d8e767

Browse files
committed
Arbitrary self types v2: stabilize in miri
1 parent fa04faa commit 0d8e767

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/tools/miri/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#![feature(pointer_is_aligned_to)]
1515
#![feature(unqualified_local_imports)]
1616
#![feature(derive_coerce_pointee)]
17-
#![feature(arbitrary_self_types)]
17+
#![cfg_attr(bootstrap,feature(legacy_receiver_trait))]
1818
// Configure clippy and other lints
1919
#![allow(
2020
clippy::collapsible_else_if,

src/tools/miri/src/shims/files.rs

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ impl<T: ?Sized> Deref for FileDescriptionRef<T> {
4343
}
4444
}
4545

46+
#[cfg(bootstrap)]
47+
impl<T: ?Sized> core::ops::LegacyReceiver for FileDescriptionRef<T> {
48+
}
49+
4650
impl<T: ?Sized> FileDescriptionRef<T> {
4751
pub fn id(&self) -> FdId {
4852
self.0.id

0 commit comments

Comments
 (0)