@@ -101,7 +101,7 @@ impl Error {
101101 object_drop_rest : object_drop_front :: < E > ,
102102 #[ cfg( all(
103103 not( error_generic_member_access) ,
104- any( backtrace , feature = "backtrace" )
104+ any( std_backtrace , feature = "backtrace" )
105105 ) ) ]
106106 object_backtrace : no_backtrace,
107107 } ;
@@ -129,7 +129,7 @@ impl Error {
129129 object_drop_rest : object_drop_front :: < M > ,
130130 #[ cfg( all(
131131 not( error_generic_member_access) ,
132- any( backtrace , feature = "backtrace" )
132+ any( std_backtrace , feature = "backtrace" )
133133 ) ) ]
134134 object_backtrace : no_backtrace,
135135 } ;
@@ -158,7 +158,7 @@ impl Error {
158158 object_drop_rest : object_drop_front :: < M > ,
159159 #[ cfg( all(
160160 not( error_generic_member_access) ,
161- any( backtrace , feature = "backtrace" )
161+ any( std_backtrace , feature = "backtrace" )
162162 ) ) ]
163163 object_backtrace : no_backtrace,
164164 } ;
@@ -189,7 +189,7 @@ impl Error {
189189 object_drop_rest : context_drop_rest :: < C , E > ,
190190 #[ cfg( all(
191191 not( error_generic_member_access) ,
192- any( backtrace , feature = "backtrace" )
192+ any( std_backtrace , feature = "backtrace" )
193193 ) ) ]
194194 object_backtrace : no_backtrace,
195195 } ;
@@ -218,7 +218,7 @@ impl Error {
218218 object_drop_rest : object_drop_front :: < Box < dyn StdError + Send + Sync > > ,
219219 #[ cfg( all(
220220 not( error_generic_member_access) ,
221- any( backtrace , feature = "backtrace" )
221+ any( std_backtrace , feature = "backtrace" )
222222 ) ) ]
223223 object_backtrace : no_backtrace,
224224 } ;
@@ -334,7 +334,7 @@ impl Error {
334334 object_drop_rest : context_chain_drop_rest :: < C > ,
335335 #[ cfg( all(
336336 not( error_generic_member_access) ,
337- any( backtrace , feature = "backtrace" )
337+ any( std_backtrace , feature = "backtrace" )
338338 ) ) ]
339339 object_backtrace : context_backtrace :: < C > ,
340340 } ;
@@ -376,7 +376,7 @@ impl Error {
376376 /// ```
377377 ///
378378 /// [tracking]: https://github.com/rust-lang/rust/issues/53487
379- #[ cfg( any( backtrace , feature = "backtrace" ) ) ]
379+ #[ cfg( any( std_backtrace , feature = "backtrace" ) ) ]
380380 #[ cfg_attr( doc_cfg, doc( cfg( any( nightly, feature = "backtrace" ) ) ) ) ]
381381 pub fn backtrace ( & self ) -> & impl_backtrace ! ( ) {
382382 unsafe { ErrorImpl :: backtrace ( self . inner . by_ref ( ) ) }
@@ -622,7 +622,7 @@ struct ErrorVTable {
622622 object_drop_rest : unsafe fn ( Own < ErrorImpl > , TypeId ) ,
623623 #[ cfg( all(
624624 not( error_generic_member_access) ,
625- any( backtrace , feature = "backtrace" )
625+ any( std_backtrace , feature = "backtrace" )
626626 ) ) ]
627627 object_backtrace : unsafe fn ( Ref < ErrorImpl > ) -> Option < & Backtrace > ,
628628}
@@ -730,7 +730,7 @@ where
730730
731731#[ cfg( all(
732732 not( error_generic_member_access) ,
733- any( backtrace , feature = "backtrace" )
733+ any( std_backtrace , feature = "backtrace" )
734734) ) ]
735735fn no_backtrace ( e : Ref < ErrorImpl > ) -> Option < & Backtrace > {
736736 let _ = e;
@@ -854,7 +854,7 @@ where
854854// Safety: requires layout of *e to match ErrorImpl<ContextError<C, Error>>.
855855#[ cfg( all(
856856 not( error_generic_member_access) ,
857- any( backtrace , feature = "backtrace" )
857+ any( std_backtrace , feature = "backtrace" )
858858) ) ]
859859#[ allow( clippy:: unnecessary_wraps) ]
860860unsafe fn context_backtrace < C > ( e : Ref < ErrorImpl > ) -> Option < & Backtrace >
@@ -926,7 +926,7 @@ impl ErrorImpl {
926926 return unsafe { ( vtable ( this. ptr ) . object_mut ) ( this) } ;
927927 }
928928
929- #[ cfg( any( backtrace , feature = "backtrace" ) ) ]
929+ #[ cfg( any( std_backtrace , feature = "backtrace" ) ) ]
930930 pub ( crate ) unsafe fn backtrace ( this : Ref < Self > ) -> & Backtrace {
931931 // This unwrap can only panic if the underlying error's backtrace method
932932 // is nondeterministic, which would only happen in maliciously
0 commit comments