@@ -558,16 +558,19 @@ pub use backtrace::Backtrace;
558558pub use backtrace:: InternalBacktrace ;
559559
560560#[ derive( Debug ) ]
561+ #[ allow( unknown_lints, bare_trait_objects) ]
561562/// Iterator over the error chain using the `Error::cause()` method.
562563pub struct Iter < ' a > ( Option < & ' a error:: Error > ) ;
563564
564565impl < ' a > Iter < ' a > {
565566 /// Returns a new iterator over the error chain using `Error::cause()`.
567+ #[ allow( unknown_lints, bare_trait_objects) ]
566568 pub fn new ( err : Option < & ' a error:: Error > ) -> Iter < ' a > {
567569 Iter ( err)
568570 }
569571}
570572
573+ #[ allow( unknown_lints, bare_trait_objects) ]
571574impl < ' a > Iterator for Iter < ' a > {
572575 type Item = & ' a error:: Error ;
573576
@@ -631,6 +634,7 @@ pub trait ChainedError: error::Error + Send + 'static {
631634 /// Returns the first known backtrace, either from its State or from one
632635 /// of the errors from `foreign_links`.
633636 #[ doc( hidden) ]
637+ #[ allow( unknown_lints, bare_trait_objects) ]
634638 fn extract_backtrace ( e : & ( error:: Error + Send + ' static ) ) -> Option < InternalBacktrace >
635639 where Self : Sized ;
636640}
@@ -661,6 +665,7 @@ impl<'a, T> fmt::Display for DisplayChain<'a, T>
661665/// Common state between errors.
662666#[ derive( Debug ) ]
663667#[ doc( hidden) ]
668+ #[ allow( unknown_lints, bare_trait_objects) ]
664669pub struct State {
665670 /// Next error in the error chain.
666671 pub next_error : Option < Box < error:: Error + Send > > ,
@@ -679,6 +684,7 @@ impl Default for State {
679684
680685impl State {
681686 /// Creates a new State type
687+ #[ allow( unknown_lints, bare_trait_objects) ]
682688 pub fn new < CE : ChainedError > ( e : Box < error:: Error + Send > ) -> State {
683689 let backtrace = CE :: extract_backtrace ( & * e)
684690 . unwrap_or_else ( InternalBacktrace :: new) ;
0 commit comments