Commit 3038b62
process_wrapper shouldn't choke on rustc warnings (#3666)
Previously " WARN ..." output on stderr would cause process wrapper to
give up parsing the json and emit it verbatim.
```
WARN rustc_errors::emitter Invalid span ./snip.rs:49:25: 49:25 (#7), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "./snip.rs" }) }
WARN rustc_errors::emitter Invalid span ./snip.rs:49:31: 49:31 (#7), error=SourceNotAvailable { filename: Real(Remapped { local_path: None, virtual_name: "./snip.rs" }) }
{"$message_type":"diagnostic","message":"expected a literal (`1u8`, `1.0f32`, `\"string\"`, etc.) here, found `concat`","code":null,"level":"error","spans": ...
```
Co-authored-by: Krasimir Georgiev <[email protected]>1 parent 8e38d48 commit 3038b62
1 file changed
+32
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
292 | 294 | | |
293 | 295 | | |
294 | 296 | | |
295 | | - | |
| 297 | + | |
296 | 298 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
320 | 308 | | |
321 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
322 | 328 | | |
323 | 329 | | |
324 | 330 | | |
| |||
0 commit comments