From 314b130e326ef8d726d24720dee5098c1083cdf3 Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Fri, 22 Oct 2021 02:47:18 +0200 Subject: [PATCH] rust: upgrade to Edition 2021 Migration lints did not spot any problem. Co-developed-by: Gary Guo Signed-off-by: Gary Guo Signed-off-by: Miguel Ojeda --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1b9b6714b199c3..66e08593982ac3 100644 --- a/Makefile +++ b/Makefile @@ -531,7 +531,7 @@ KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ -std=gnu89 KBUILD_CPPFLAGS := -D__KERNEL__ KBUILD_RUST_TARGET := $(srctree)/arch/$(SRCARCH)/rust/target.json -KBUILD_RUSTFLAGS := --emit=dep-info,obj,metadata --edition=2018 \ +KBUILD_RUSTFLAGS := --emit=dep-info,obj,metadata --edition=2021 \ -Cpanic=abort -Cembed-bitcode=n -Clto=n -Crpath=n \ -Cforce-unwind-tables=n -Ccodegen-units=1 \ -Zbinary_dep_depinfo=y -Zsymbol-mangling-version=v0 \