Open ijackson opened 4 years ago
This is a consequence of this compiler bug: https://github.com/rust-lang/rust/issues/43081. When calling an attribute macro #[...]
the compiler will randomly forget all the source code location information like this.
I have not seen this happen to me in a very long time. I think that if this compiler bug is still present, it now does not come up when using fehler.
Not sure whether to leave this issue open in case it recurs for anyone, or simply close it.
Hi. Thanks again for this excellent package.
To reproduce:
And run cargo build, with
fehler="1"
in yourdependencies
.Actual output:
Note the very unhelpful error messages, with no location information and no suggestions.
Expected output:
This rather odd test case was minimised from a more complicated program. Empirically, the issue goes away if I remove any of (a)
#[throws]
(b) the#[derive]
on the struct (c) the closure. The problem can occur with errors as well as warnings. In one particular version of my actual program I got the very unhelpful outputtype annotations needed
without any indication of where!Thanks for your attention.