File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888// discussion of these features please refer to this issue:
8989//
9090// https://github.com/serde-rs/serde/issues/812
91- #![ cfg_attr( feature = "unstable" , feature( never_type) ) ]
91+ #![ cfg_attr( feature = "unstable" , feature( error_in_core , never_type) ) ]
9292#![ allow( unknown_lints, bare_trait_objects, deprecated) ]
9393#![ cfg_attr( feature = "cargo-clippy" , allow( renamed_and_removed_lints) ) ]
9494// Ignored clippy and clippy_pedantic lints
@@ -303,7 +303,7 @@ use self::__private as private;
303303#[ path = "de/seed.rs" ]
304304mod seed;
305305
306- #[ cfg( not( feature = "std" ) ) ]
306+ #[ cfg( not( any ( feature = "std" , feature = "unstable" ) ) ) ]
307307mod std_error;
308308
309309// Re-export #[derive(Serialize, Deserialize)].
Original file line number Diff line number Diff line change @@ -115,10 +115,13 @@ mod impossible;
115115
116116pub use self :: impossible:: Impossible ;
117117
118+ #[ cfg( all( feature = "unstable" , not( feature = "std" ) ) ) ]
119+ #[ doc( inline) ]
120+ pub use core:: error:: Error as StdError ;
118121#[ cfg( feature = "std" ) ]
119122#[ doc( no_inline) ]
120123pub use std:: error:: Error as StdError ;
121- #[ cfg( not( feature = "std" ) ) ]
124+ #[ cfg( not( any ( feature = "std" , feature = "unstable" ) ) ) ]
122125#[ doc( no_inline) ]
123126pub use std_error:: Error as StdError ;
124127
You can’t perform that action at this time.
0 commit comments