Commit b219427
committed
Auto merge of #654 - Enselic:rustdocflags, r=Mark-Simulacrum
Allow to specify `RUSTDOCFLAGS` independently
Currently, if you to run this experiment:
```
cargo run -- define-ex --ex rustdoc-json-broken --mode rustdoc \
--cap-lints warn --crate-select list:serde \
"nightly-2022-06-01+rustflags=-Z unstable-options --output-format json" \
"nightly+rustflags=-Z unstable-options --output-format json" \
```
crater will mix up `RUSTFLAGS` and `RUSTDOCFLAGS` and you will get the following error:
```
[INFO] [stderr] process didn't exit successfully: `rustc - --crate-name ___ \
--print=file-names --cap-lints=warn -Z unstable-options --output-format json \
--crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib \
--crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` \
(exit status: 1)
[INFO] [stderr] --- stderr
[INFO] [stderr] error: Unrecognized option: 'output-format'
```
Solve this by allowing `rustdoc` and `rustdocflags` to be specified independently. After this change, this works without unexpected errors:
```
cargo run -- define-ex --ex rustdoc-json-ice --mode rustdoc \
--cap-lints warn --crate-select list:serde \
"nightly-2022-06-01+rustdocflags=-Z unstable-options --output-format json" \
"nightly+rustdocflags=-Z unstable-options --output-format json"
```
Not sure if this change breaks compatibility in some way, but it seems like a rather generic and future-proof solution to me.File tree
3 files changed
+36
-6
lines changed- src
- runner
- server/routes/webhooks
3 files changed
+36
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
| |||
134 | 142 | | |
135 | 143 | | |
136 | 144 | | |
| 145 | + | |
137 | 146 | | |
138 | 147 | | |
139 | 148 | | |
| |||
146 | 155 | | |
147 | 156 | | |
148 | 157 | | |
| 158 | + | |
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| |||
199 | 209 | | |
200 | 210 | | |
201 | 211 | | |
| 212 | + | |
202 | 213 | | |
203 | 214 | | |
204 | 215 | | |
| |||
208 | 219 | | |
209 | 220 | | |
210 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
211 | 233 | | |
212 | 234 | | |
213 | 235 | | |
| |||
217 | 239 | | |
218 | 240 | | |
219 | 241 | | |
| 242 | + | |
220 | 243 | | |
221 | 244 | | |
222 | 245 | | |
| |||
226 | 249 | | |
227 | 250 | | |
228 | 251 | | |
| 252 | + | |
229 | 253 | | |
230 | 254 | | |
231 | 255 | | |
| |||
239 | 263 | | |
240 | 264 | | |
241 | 265 | | |
| 266 | + | |
242 | 267 | | |
243 | 268 | | |
244 | 269 | | |
| |||
291 | 316 | | |
292 | 317 | | |
293 | 318 | | |
| 319 | + | |
| 320 | + | |
294 | 321 | | |
295 | 322 | | |
296 | 323 | | |
| |||
0 commit comments