Home
last modified time | relevance | path

Searched refs:has_dropped (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/anyhow/tests/drop/
Dmod.rs28 has_dropped: Flag, field
32 pub fn new(has_dropped: &Flag) -> Self { in new()
34 has_dropped: Flag { in new()
35 atomic: Arc::clone(&has_dropped.atomic), in new()
51 let already_dropped = self.has_dropped.atomic.swap(true, SeqCst); in drop()
/external/rust/crates/anyhow/tests/
Dtest_repr.rs26 let has_dropped = Flag::new(); in test_drop() localVariable
27 drop(Error::new(DetectDrop::new(&has_dropped))); in test_drop()
28 assert!(has_dropped.get()); in test_drop()
Dtest_convert.rs11 let has_dropped = Flag::new(); in test_convert() localVariable
12 let error = Error::new(DetectDrop::new(&has_dropped)); in test_convert()
16 assert!(has_dropped.get()); in test_convert()
Dtest_downcast.rs81 let has_dropped = Flag::new(); in test_drop() localVariable
82 let error = Error::new(DetectDrop::new(&has_dropped)); in test_drop()
84 assert!(has_dropped.get()); in test_drop()