Skip to content

Commit bc83834

Browse files
tamirdojeda
authored andcommitted
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: 88de91c ("rust: quote: enable support in kbuild") Signed-off-by: Tamir Duberstein <tamird@gmail.com> Reviewed-by: Jesung Yang <y.j3ms.n@gmail.com> Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260115-rust-analyzer-quote-edition-v1-1-d492f880dde4@gmail.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 3a50257 commit bc83834

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/generate_rust_analyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def append_sysroot_crate(
9898
srctree / "rust" / "quote" / "lib.rs",
9999
["core", "alloc", "std", "proc_macro", "proc_macro2"],
100100
cfg=crates_cfgs["quote"],
101+
edition="2018",
101102
)
102103

103104
append_crate(

0 commit comments

Comments
 (0)