File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,6 @@ pub struct Validator {
174
174
pub enum ConstantError {
175
175
#[ error( "The type doesn't match the constant" ) ]
176
176
InvalidType ,
177
- #[ error( "The component handle {0:?} can not be resolved" ) ]
178
- UnresolvedComponent ( Handle < crate :: Constant > ) ,
179
- #[ error( "The array size handle {0:?} can not be resolved" ) ]
180
- UnresolvedSize ( Handle < crate :: Constant > ) ,
181
177
#[ error( transparent) ]
182
178
Compose ( #[ from] ComposeError ) ,
183
179
}
@@ -311,18 +307,6 @@ impl Validator {
311
307
}
312
308
}
313
309
crate :: ConstantInner :: Composite { ty, ref components } => {
314
- match types[ ty] . inner {
315
- crate :: TypeInner :: Array {
316
- size : crate :: ArraySize :: Constant ( size_handle) ,
317
- ..
318
- } if handle <= size_handle => {
319
- return Err ( ConstantError :: UnresolvedSize ( size_handle) ) ;
320
- }
321
- _ => { }
322
- }
323
- if let Some ( & comp) = components. iter ( ) . find ( |& & comp| handle <= comp) {
324
- return Err ( ConstantError :: UnresolvedComponent ( comp) ) ;
325
- }
326
310
compose:: validate_compose (
327
311
ty,
328
312
constants,
You can’t perform that action at this time.
0 commit comments