File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -180,14 +180,15 @@ pub struct DynMetadata<Dyn: ?Sized> {
180
180
phantom : crate :: marker:: PhantomData < Dyn > ,
181
181
}
182
182
183
- /// Opaque type for accessing vtables.
184
- ///
185
- /// Private implementation detail of `DynMetadata::size_of` etc.
186
- /// Must be zero-sized since there is conceptually not actually any Abstract Machine memory behind this pointer.
187
- /// However, we can require pointer alignment.
188
- #[ repr( C ) ]
189
183
#[ cfg( not( bootstrap) ) ]
190
- struct VTable ( [ usize ; 0 ] ) ;
184
+ extern "C" {
185
+ /// Opaque type for accessing vtables.
186
+ ///
187
+ /// Private implementation detail of `DynMetadata::size_of` etc.
188
+ /// Must be zero-sized since there is conceptually not actually any Abstract Machine memory behind this pointer.
189
+ /// However, we can require pointer alignment.
190
+ type VTable ;
191
+ }
191
192
192
193
/// The common prefix of all vtables. It is followed by function pointers for trait methods.
193
194
///
You can’t perform that action at this time.
0 commit comments