Skip to content

Commit f8f3aa1

Browse files
committed
Makefile: restrict Rust unstable features for kernel modules
Suggested-by: bjorn3 <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 0627f1a commit f8f3aa1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/Makefile.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ quiet_cmd_rustc_o_rs = $(RUSTC_OR_CLIPPY_QUIET) $(quiet_modtag) $@
300300
cmd_rustc_o_rs = \
301301
RUST_MODFILE=$(modfile) \
302302
$(RUSTC_OR_CLIPPY) $(rustc_flags) $(rustc_cross_flags) \
303+
-Zallow-features=allocator_api,bench_black_box,concat_idents,global_asm,try_reserve \
303304
--extern alloc --extern kernel \
304305
--crate-type rlib --out-dir $(obj) -L $(objtree)/rust/ \
305306
--crate-name $(patsubst %.o,%,$(notdir $@)) $<; \

0 commit comments

Comments
 (0)