aboutsummaryrefslogtreecommitdiff
path: root/gen/lib/src/error.rs
AgeCommit message (Collapse)Author
2023-05-25Touch up PR 1214David Tolnay
2023-05-25cxx-qen: impl IntoIterator for ErrorLeon Matthes
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.
2023-05-18cxx-gen: Add span() to Error typeLeon Matthes
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
2022-01-17Enforce docs on anything that ends up in the cxx-gen APIDavid Tolnay
2020-08-30Store cxx-gen error as braced structDavid Tolnay
This appears more sympathetically in rustdoc as: pub struct Error { /* fields omitted */ } rather than: pub struct Error(_);
2020-08-30Make a module for the cxx-gen error typeDavid Tolnay