Skip to content

Commit 83a4f81

Browse files
committed
rust: core: back to Edition 2018 for a release
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent d2a7383 commit 83a4f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ $(objtree)/rust/kernel.o: $(srctree)/rust/kernel/lib.rs $(objtree)/rust/alloc.o
340340
# Targets that need to expand twice
341341
.SECONDEXPANSION:
342342
$(objtree)/rust/core.o: private skip_clippy = 1
343-
$(objtree)/rust/core.o: private skip_flags = -Dunreachable_pub
344-
$(objtree)/rust/core.o: private rustc_target_flags = $(core-cfgs)
343+
$(objtree)/rust/core.o: private skip_flags = -Dunreachable_pub --edition=2021
344+
$(objtree)/rust/core.o: private rustc_target_flags = $(core-cfgs) --edition=2018
345345
$(objtree)/rust/core.o: $$(RUST_LIB_SRC)/core/src/lib.rs FORCE
346346
$(call if_changed_dep,rustc_library)
347347

0 commit comments

Comments
 (0)