@@ -166,7 +166,7 @@ pub enum SideEffect {
166166macro_rules! id {
167167 ( $( pub struct $name: ident( u32 ) ; ) * ) => ( $(
168168 #[ derive( Debug , Copy , Clone , Hash , Eq , PartialEq ) ]
169- #[ allow ( missing_docs, reason = "tedious to document" ) ]
169+ #[ expect ( missing_docs, reason = "tedious to document" ) ]
170170 pub struct $name( u32 ) ;
171171 cranelift_entity:: entity_impl!( $name) ;
172172 ) * )
@@ -183,7 +183,7 @@ id! {
183183}
184184
185185/// Same as `info::InstantiateModule`
186- #[ allow ( missing_docs, reason = "tedious to document variants" ) ]
186+ #[ expect ( missing_docs, reason = "tedious to document variants" ) ]
187187pub enum Instance {
188188 Static ( StaticModuleIndex , Box < [ CoreDef ] > ) ,
189189 Import (
@@ -193,7 +193,7 @@ pub enum Instance {
193193}
194194
195195/// Same as `info::Export`
196- #[ allow ( missing_docs, reason = "tedious to document variants" ) ]
196+ #[ expect ( missing_docs, reason = "tedious to document variants" ) ]
197197pub enum Export {
198198 LiftedFunction {
199199 ty : TypeFuncIndex ,
@@ -217,7 +217,7 @@ pub enum Export {
217217
218218/// Same as `info::CoreDef`, except has an extra `Adapter` variant.
219219#[ derive( Debug , Clone , Hash , Eq , PartialEq ) ]
220- #[ allow ( missing_docs, reason = "tedious to document variants" ) ]
220+ #[ expect ( missing_docs, reason = "tedious to document variants" ) ]
221221pub enum CoreDef {
222222 Export ( CoreExport < EntityIndex > ) ,
223223 InstanceFlags ( RuntimeComponentInstanceIndex ) ,
@@ -244,14 +244,14 @@ where
244244
245245/// Same as `info::CoreExport`
246246#[ derive( Debug , Clone , Hash , Eq , PartialEq ) ]
247- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
247+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
248248pub struct CoreExport < T > {
249249 pub instance : InstanceId ,
250250 pub item : ExportItem < T > ,
251251}
252252
253253impl < T > CoreExport < T > {
254- #[ allow ( missing_docs, reason = "self-describing function" ) ]
254+ #[ expect ( missing_docs, reason = "self-describing function" ) ]
255255 pub fn map_index < U > ( self , f : impl FnOnce ( T ) -> U ) -> CoreExport < U > {
256256 CoreExport {
257257 instance : self . instance ,
@@ -265,7 +265,7 @@ impl<T> CoreExport<T> {
265265
266266/// Same as `info::Trampoline`
267267#[ derive( Clone , PartialEq , Eq , Hash ) ]
268- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
268+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
269269pub enum Trampoline {
270270 LowerImport {
271271 import : RuntimeImportIndex ,
@@ -399,22 +399,22 @@ pub enum Trampoline {
399399}
400400
401401#[ derive( Copy , Clone , Hash , Eq , PartialEq ) ]
402- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
402+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
403403pub struct FutureInfo {
404404 pub instance : RuntimeComponentInstanceIndex ,
405405 pub payload_type : Option < InterfaceType > ,
406406}
407407
408408#[ derive( Copy , Clone , Hash , Eq , PartialEq ) ]
409- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
409+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
410410pub struct StreamInfo {
411411 pub instance : RuntimeComponentInstanceIndex ,
412412 pub payload_type : InterfaceType ,
413413}
414414
415415/// Same as `info::CanonicalOptions`
416416#[ derive( Clone , Hash , Eq , PartialEq ) ]
417- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
417+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
418418pub struct CanonicalOptions {
419419 pub instance : RuntimeComponentInstanceIndex ,
420420 pub string_encoding : StringEncoding ,
@@ -426,7 +426,7 @@ pub struct CanonicalOptions {
426426}
427427
428428/// Same as `info::Resource`
429- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
429+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
430430pub struct Resource {
431431 pub rep : WasmValType ,
432432 pub dtor : Option < CoreDef > ,
0 commit comments