Skip to content

Commit

Permalink
Merge pull request #339 from ojeda/unsafe
Browse files Browse the repository at this point in the history
rust: globally warn on `unsafe_op_in_unsafe_fn`
  • Loading branch information
ojeda authored Jun 3, 2021
2 parents 40fb0c7 + 34658e6 commit 0b9bcdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ KBUILD_RUSTC_TARGET := $(srctree)/arch/$(SRCARCH)/rust/target.json
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
-Zbinary_dep_depinfo=y -Zsymbol-mangling-version=v0 \
-W unsafe_op_in_unsafe_fn
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
KBUILD_RUSTCFLAGS_KERNEL :=
Expand Down

0 comments on commit 0b9bcdf

Please sign in to comment.