From a0ea20f07a500c070f96bfbdd1045f406f467d18 Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Fri, 4 Jun 2021 19:11:30 +0200 Subject: [PATCH] rust: globally deny `unsafe_op_in_unsafe_fn` This prevents new ones from getting in. Signed-off-by: Miguel Ojeda --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d79073b0f69f63..efbd76ba40ce90 100644 --- a/Makefile +++ b/Makefile @@ -516,7 +516,7 @@ KBUILD_RUSTCFLAGS := --emit=dep-info,obj,metadata --edition=2018 \ -Cpanic=abort -Cembed-bitcode=n -Clto=n -Crpath=n \ -Cforce-unwind-tables=n -Ccodegen-units=1 \ -Zbinary_dep_depinfo=y -Zsymbol-mangling-version=v0 \ - -W unsafe_op_in_unsafe_fn + -D unsafe_op_in_unsafe_fn KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL := KBUILD_RUSTCFLAGS_KERNEL :=