Commit 4079cf0
committed
scripts: generate_rust_analyzer.py: drop
Add a dedicated `append_proc_macro_crate` function to reduce overloading
in `append_crate`. This has the effect of removing `"is_proc_macro":
false` from the output; this field is interpreted as false if absent[1]
so this doesn't change the behavior of rust-analyzer.
Use the `/` operator on `pathlib.Path` rather than directly crafting a
string. This is consistent with all other path manipulation in this
script.
Link: https://github.com/rust-lang/rust-analyzer/blob/8d01570b5e812a49daa1f08404269f6ea5dd73a1/crates/project-model/src/project_json.rs#L372-L373 [1]
Tested-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Reviewed-by: Jesung Yang <y.j3ms.n@gmail.com>
Tested-by: Jesung Yang <y.j3ms.n@gmail.com>
Link: https://patch.msgid.link/20260122-rust-analyzer-types-v1-2-29cc2e91dcd5@kernel.org
Signed-off-by: Tamir Duberstein <tamird@kernel.org>"is_proc_macro": false
1 parent e33d58e commit 4079cf0
1 file changed
Lines changed: 43 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | 51 | | |
54 | | - | |
| 52 | + | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
69 | 93 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
73 | 104 | | |
74 | 105 | | |
75 | 106 | | |
| |||
82 | 113 | | |
83 | 114 | | |
84 | 115 | | |
85 | | - | |
86 | 116 | | |
87 | 117 | | |
88 | 118 | | |
| |||
92 | 122 | | |
93 | 123 | | |
94 | 124 | | |
95 | | - | |
96 | 125 | | |
97 | 126 | | |
98 | 127 | | |
| |||
172 | 201 | | |
173 | 202 | | |
174 | 203 | | |
175 | | - | |
| 204 | + | |
176 | 205 | | |
177 | 206 | | |
178 | 207 | | |
179 | | - | |
180 | 208 | | |
181 | 209 | | |
182 | 210 | | |
| |||
185 | 213 | | |
186 | 214 | | |
187 | 215 | | |
188 | | - | |
| 216 | + | |
189 | 217 | | |
190 | 218 | | |
191 | 219 | | |
192 | 220 | | |
193 | | - | |
194 | 221 | | |
195 | 222 | | |
196 | 223 | | |
| |||
216 | 243 | | |
217 | 244 | | |
218 | 245 | | |
219 | | - | |
220 | 246 | | |
221 | 247 | | |
222 | 248 | | |
| |||
0 commit comments