Skip to content

Commit

Permalink
rust: globally deny unsafe_op_in_unsafe_fn
Browse files Browse the repository at this point in the history
This prevents new ones from getting in.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
  • Loading branch information
ojeda committed Jun 4, 2021
1 parent f81ade8 commit a0ea20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 :=
Expand Down

0 comments on commit a0ea20f

Please sign in to comment.