Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a0ea20f

Browse files
committedJun 4, 2021
rust: globally deny unsafe_op_in_unsafe_fn
This prevents new ones from getting in. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent f81ade8 commit a0ea20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ KBUILD_RUSTCFLAGS := --emit=dep-info,obj,metadata --edition=2018 \
516516
-Cpanic=abort -Cembed-bitcode=n -Clto=n -Crpath=n \
517517
-Cforce-unwind-tables=n -Ccodegen-units=1 \
518518
-Zbinary_dep_depinfo=y -Zsymbol-mangling-version=v0 \
519-
-W unsafe_op_in_unsafe_fn
519+
-D unsafe_op_in_unsafe_fn
520520
KBUILD_AFLAGS_KERNEL :=
521521
KBUILD_CFLAGS_KERNEL :=
522522
KBUILD_RUSTCFLAGS_KERNEL :=

0 commit comments

Comments
 (0)
Failed to load comments.