From edd221ac3b0017815d8dc1bbc3f48ae1a0b476f7 Mon Sep 17 00:00:00 2001 From: Andreea Florescu Date: Mon, 24 Oct 2022 18:01:44 +0200 Subject: [PATCH] don't allow undocumented unsafe blocks We already have this as a requirement for merging PRs as part of the PR checklist template, but it's better to enforce it. This comes with the disadvantage that we will need to update all comments and add the prefix "SAFETY: " as required by the clippy check. Signed-off-by: Andreea Florescu --- .buildkite/test_description.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/test_description.json b/.buildkite/test_description.json index dd27007..301a814 100644 --- a/.buildkite/test_description.json +++ b/.buildkite/test_description.json @@ -38,7 +38,7 @@ }, { "test_name": "clippy", - "command": "cargo clippy --workspace --bins --examples --benches --all-features --all-targets -- -D warnings", + "command": "cargo clippy --workspace --bins --examples --benches --all-features --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks", "platform": [ "x86_64", "aarch64"