@@ -166,7 +166,7 @@ pub enum SideEffect {
166
166
macro_rules! id {
167
167
( $( pub struct $name: ident( u32 ) ; ) * ) => ( $(
168
168
#[ derive( Debug , Copy , Clone , Hash , Eq , PartialEq ) ]
169
- #[ allow ( missing_docs, reason = "tedious to document" ) ]
169
+ #[ expect ( missing_docs, reason = "tedious to document" ) ]
170
170
pub struct $name( u32 ) ;
171
171
cranelift_entity:: entity_impl!( $name) ;
172
172
) * )
@@ -183,7 +183,7 @@ id! {
183
183
}
184
184
185
185
/// Same as `info::InstantiateModule`
186
- #[ allow ( missing_docs, reason = "tedious to document variants" ) ]
186
+ #[ expect ( missing_docs, reason = "tedious to document variants" ) ]
187
187
pub enum Instance {
188
188
Static ( StaticModuleIndex , Box < [ CoreDef ] > ) ,
189
189
Import (
@@ -193,7 +193,7 @@ pub enum Instance {
193
193
}
194
194
195
195
/// Same as `info::Export`
196
- #[ allow ( missing_docs, reason = "tedious to document variants" ) ]
196
+ #[ expect ( missing_docs, reason = "tedious to document variants" ) ]
197
197
pub enum Export {
198
198
LiftedFunction {
199
199
ty : TypeFuncIndex ,
@@ -217,7 +217,7 @@ pub enum Export {
217
217
218
218
/// Same as `info::CoreDef`, except has an extra `Adapter` variant.
219
219
#[ derive( Debug , Clone , Hash , Eq , PartialEq ) ]
220
- #[ allow ( missing_docs, reason = "tedious to document variants" ) ]
220
+ #[ expect ( missing_docs, reason = "tedious to document variants" ) ]
221
221
pub enum CoreDef {
222
222
Export ( CoreExport < EntityIndex > ) ,
223
223
InstanceFlags ( RuntimeComponentInstanceIndex ) ,
@@ -244,14 +244,14 @@ where
244
244
245
245
/// Same as `info::CoreExport`
246
246
#[ derive( Debug , Clone , Hash , Eq , PartialEq ) ]
247
- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
247
+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
248
248
pub struct CoreExport < T > {
249
249
pub instance : InstanceId ,
250
250
pub item : ExportItem < T > ,
251
251
}
252
252
253
253
impl < T > CoreExport < T > {
254
- #[ allow ( missing_docs, reason = "self-describing function" ) ]
254
+ #[ expect ( missing_docs, reason = "self-describing function" ) ]
255
255
pub fn map_index < U > ( self , f : impl FnOnce ( T ) -> U ) -> CoreExport < U > {
256
256
CoreExport {
257
257
instance : self . instance ,
@@ -265,7 +265,7 @@ impl<T> CoreExport<T> {
265
265
266
266
/// Same as `info::Trampoline`
267
267
#[ derive( Clone , PartialEq , Eq , Hash ) ]
268
- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
268
+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
269
269
pub enum Trampoline {
270
270
LowerImport {
271
271
import : RuntimeImportIndex ,
@@ -399,22 +399,22 @@ pub enum Trampoline {
399
399
}
400
400
401
401
#[ derive( Copy , Clone , Hash , Eq , PartialEq ) ]
402
- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
402
+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
403
403
pub struct FutureInfo {
404
404
pub instance : RuntimeComponentInstanceIndex ,
405
405
pub payload_type : Option < InterfaceType > ,
406
406
}
407
407
408
408
#[ derive( Copy , Clone , Hash , Eq , PartialEq ) ]
409
- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
409
+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
410
410
pub struct StreamInfo {
411
411
pub instance : RuntimeComponentInstanceIndex ,
412
412
pub payload_type : InterfaceType ,
413
413
}
414
414
415
415
/// Same as `info::CanonicalOptions`
416
416
#[ derive( Clone , Hash , Eq , PartialEq ) ]
417
- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
417
+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
418
418
pub struct CanonicalOptions {
419
419
pub instance : RuntimeComponentInstanceIndex ,
420
420
pub string_encoding : StringEncoding ,
@@ -426,7 +426,7 @@ pub struct CanonicalOptions {
426
426
}
427
427
428
428
/// Same as `info::Resource`
429
- #[ allow ( missing_docs, reason = "self-describing fields" ) ]
429
+ #[ expect ( missing_docs, reason = "self-describing fields" ) ]
430
430
pub struct Resource {
431
431
pub rep : WasmValType ,
432
432
pub dtor : Option < CoreDef > ,
0 commit comments