File tree 1 file changed +1
-9
lines changed 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ use syntax::source_map::Spanned;
20
20
use syntax:: symbol:: { kw, sym} ;
21
21
use syntax:: visit:: { self , Visitor } ;
22
22
use syntax:: { span_err, struct_span_err, walk_list} ;
23
- use syntax_pos:: { Span , MultiSpan } ;
23
+ use syntax_pos:: Span ;
24
24
use errors:: { Applicability , FatalError } ;
25
25
26
26
struct AstValidator < ' a > {
@@ -584,14 +584,6 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
584
584
"unions cannot have zero fields" ) ;
585
585
}
586
586
}
587
- ItemKind :: OpaqueTy ( ref bounds, _) => {
588
- if !bounds. iter ( )
589
- . any ( |b| if let GenericBound :: Trait ( ..) = * b { true } else { false } ) {
590
- let msp = MultiSpan :: from_spans ( bounds. iter ( )
591
- . map ( |bound| bound. span ( ) ) . collect ( ) ) ;
592
- self . err_handler ( ) . span_err ( msp, "at least one trait must be specified" ) ;
593
- }
594
- }
595
587
_ => { }
596
588
}
597
589
You can’t perform that action at this time.
0 commit comments