diff --git a/Cargo.toml b/Cargo.toml index 4f8cc3f5eb5..7866aacf387 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,14 @@ tests_outside_test_module = "warn" assertions_on_result_states = "warn" error_impl_error = "warn" +[profile.test] +# Some unit tests create files from raw fds and +# this triggers UB checks to panic. There is no +# separate flag to disable those as of right now, +# so we have to disable debug-assertions. +# Tracking issue: https://github.com/rust-lang/rust/issues/123499 +debug-assertions = false + [profile.dev] panic = "abort"