Age | Commit message (Collapse) | Author |
|
|
|
Like syn::Error, this allows Error to be "expanded" into multiple
contained errors.
In comparison to syn, this is only implemented on Error and not on
&Error, as not all variants of cxx::gen::Error implement Clone, which
would be required for this to work.
|
|
The Error type exposed in cxx-gen is very minimal currently.
For use in CXX-Qt, we'd like to access the span if the Error has one.
This would allow us to greatly improve our build script diagnostics (very similar
to how CXX displays errors itself).
cc: @ahayzen-kdab
See: https://github.com/KDAB/cxx-qt/issues/536
|
|
|
|
This appears more sympathetically in rustdoc as:
pub struct Error { /* fields omitted */ }
rather than:
pub struct Error(_);
|
|
|