Skip to content

Commit 0b9bcdf

Browse files
authored
Merge pull request #339 from ojeda/unsafe
rust: globally warn on `unsafe_op_in_unsafe_fn`
2 parents 40fb0c7 + 34658e6 commit 0b9bcdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ KBUILD_RUSTC_TARGET := $(srctree)/arch/$(SRCARCH)/rust/target.json
515515
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 \
518-
-Zbinary_dep_depinfo=y -Zsymbol-mangling-version=v0
518+
-Zbinary_dep_depinfo=y -Zsymbol-mangling-version=v0 \
519+
-W unsafe_op_in_unsafe_fn
519520
KBUILD_AFLAGS_KERNEL :=
520521
KBUILD_CFLAGS_KERNEL :=
521522
KBUILD_RUSTCFLAGS_KERNEL :=

0 commit comments

Comments
 (0)