dtolnay/cxx

Expand API of cxx_gen::Error

Aperta

#378 aperta il 29 ott 2020

 (0 commenti) (0 reazioni) (0 assegnatari)Rust (253 fork)batch import
help wanted

Metriche repository

Star
 (4472 stelle)
Metriche merge PR
 (Merge medio 8m) (3 PR mergiate in 30 g)

Descrizione

https://docs.rs/cxx-gen/0.5.2/cxx_gen/struct.Error.html currently only exposes a Display/Debug impl which is not sufficient to produce diagnostics in the style that cxx-build and cxxbridge-cmd do. We'll want to expose the location information, and/or possibly a way to retrieve a rendered diagnostic containing the source snippet.

Guida contributor