File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3030 - uses : actions/checkout@v3
3131 - name : Run cargo deftest
3232 run : cargo test --verbose
33+ - name : Run cargo test nodeffeatures+lib
34+ run : cargo test --no-default-features --lib --verbose
3335 - name : Run cargo alltest
3436 run : cargo test --all-features --verbose
3537
Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ impl Default for StateManuallyDrop {
491491 }
492492}
493493
494- #[ cfg( test) ]
494+ #[ cfg( all ( test, feature = "support_panic_trig" ) ) ]
495495#[ test]
496496fn test_state ( ) {
497497 let state = StateManuallyDrop :: empty ( ) ;
@@ -501,7 +501,7 @@ fn test_state() {
501501 state. deref_or_trig :: < PanicTrigManuallyDrop > ( ) ; // ok
502502}
503503
504- #[ cfg( test) ]
504+ #[ cfg( all ( test, feature = "support_panic_trig" ) ) ]
505505#[ test]
506506fn test_reset ( ) {
507507 let state = StateManuallyDrop :: empty ( ) ;
Original file line number Diff line number Diff line change @@ -282,6 +282,7 @@ pub use crate::core::state as state;
282282#[ doc( hidden) ]
283283#[ deprecated( since = "0.1.5" , note = "Use `SafeManuallyDrop::core::hook` instead" ) ]
284284#[ allow( deprecated) ]
285+ #[ cfg( feature = "enable_deprecated_hook" ) ]
285286pub use crate :: core:: hook as hook;
286287
287288#[ doc( hidden) ]
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ fn build_new_test_vec() -> Vec<String> {
1212 vec
1313}
1414
15+ #[ cfg( feature = "support_panic_trig" ) ]
1516#[ allow( unused_unsafe) ]
1617mod panic_test_methods {
1718 use SafeManuallyDrop :: AlwaysSafePanicManuallyDrop as PanicManuallyDrop ;
@@ -160,6 +161,7 @@ mod panic_test_methods {
160161 }
161162}
162163
164+ #[ cfg( all( test, feature = "support_panic_trig" ) ) ]
163165#[ test]
164166fn test_panic_mode ( ) {
165167 static mut PANIC_COUNTER : usize = 0 ;
You can’t perform that action at this time.
0 commit comments