rust/crates/proc_macro_api/src
Aleksey Kladov d8a3d6f378 internal: cleanup proc macro server error handlig
When dealing with proc macros, there are two very different kinds of
errors:

* first, usual errors of "proc macro panicked on this particular input"
* second, the proc macro server might day if the user, eg, kills it

First kind of errors are expected and are a normal output, while the
second kind are genuine IO-errors.

For this reason, we use a curious nested result here: `Result<Result<T,
E1>, E2>` pattern, which is 100% inspired by http://sled.rs/errors.html
2021-08-31 19:01:39 +03:00
..
msg internal: cleanup proc macro server error handlig 2021-08-31 19:01:39 +03:00
lib.rs internal: cleanup proc macro server error handlig 2021-08-31 19:01:39 +03:00
msg.rs internal: cleanup proc macro server error handlig 2021-08-31 19:01:39 +03:00
process.rs internal: cleanup proc macro server error handlig 2021-08-31 19:01:39 +03:00
version.rs Fix formatting 2021-08-17 19:25:37 +03:00