diff --git a/Cargo.toml b/Cargo.toml index 9e2fac41cf8..1bbd6d41982 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -219,6 +219,7 @@ ref_patterns = "warn" rest_pat_in_fully_bound_structs = "warn" same_functions_in_if_condition = "warn" semicolon_if_nothing_returned = "warn" +should_panic_without_expect = "warn" single_match_else = "warn" str_to_string = "warn" string_add = "warn" @@ -257,9 +258,8 @@ zero_sized_map_values = "warn" iter_over_hash_type = "allow" let_underscore_untyped = "allow" missing_assert_message = "allow" -should_panic_without_expect = "allow" too_many_lines = "allow" -unwrap_used = "allow" # TODO(emilk): We really wanna warn on this one +unwrap_used = "allow" # TODO(emilk): We really wanna warn on this one manual_range_contains = "allow" # this one is just worse imho self_named_module_files = "allow" # Disabled waiting on https://github.com/rust-lang/rust-clippy/issues/9602 diff --git a/crates/epaint/src/mutex.rs b/crates/epaint/src/mutex.rs index 157701c2be0..8c7299277f0 100644 --- a/crates/epaint/src/mutex.rs +++ b/crates/epaint/src/mutex.rs @@ -447,7 +447,7 @@ mod tests_rwlock { } #[test] - #[should_panic] + #[should_panic = "DEAD-LOCK DETECTED"] fn rwlock_write_write_reentrancy() { let one = RwLock::new(()); let _a1 = one.write(); @@ -455,7 +455,7 @@ mod tests_rwlock { } #[test] - #[should_panic] + #[should_panic = "DEAD-LOCK DETECTED"] fn rwlock_write_read_reentrancy() { let one = RwLock::new(()); let _a1 = one.write(); @@ -463,7 +463,7 @@ mod tests_rwlock { } #[test] - #[should_panic] + #[should_panic = "DEAD-LOCK DETECTED"] fn rwlock_read_write_reentrancy() { let one = RwLock::new(()); let _a1 = one.read(); @@ -505,7 +505,7 @@ mod tests_rwlock { } #[test] - #[should_panic] + #[should_panic = "DEAD-LOCK DETECTED"] fn rwlock_read_foreign_read_write_reentrancy() { use std::sync::Arc;