Commit bc83834c authored by Tamir Duberstein's avatar Tamir Duberstein Committed by Miguel Ojeda
Browse files

scripts: generate_rust_analyzer: compile quote with correct edition



Our copy of the quote crate uses edition 2018, thus generate the correct
rust-analyzer configuration for it.

Fixes: 88de91cc ("rust: quote: enable support in kbuild")
Signed-off-by: default avatarTamir Duberstein <tamird@gmail.com>
Reviewed-by: default avatarJesung Yang <y.j3ms.n@gmail.com>
Reviewed-by: default avatarGary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260115-rust-analyzer-quote-edition-v1-1-d492f880dde4@gmail.com


Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 3a50257e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -98,6 +98,7 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs, core_edit
        srctree / "rust" / "quote" / "lib.rs",
        ["core", "alloc", "std", "proc_macro", "proc_macro2"],
        cfg=crates_cfgs["quote"],
        edition="2018",
    )

    append_crate(