-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the
--emit-diagnostics
flag (#2436)
* Add the `--emit-diagnostics` flag * remove test * add(diagnostics): var.rs and lib.rs module have a function each * add(diagnostics): rustfmt * add(diagnostics): docs moved to book * add(diagnostics): wip, saving location * add(diagnostics): wip, saving location * add(diagnostics): add line number and origin file to slice * add(diagnostics): unused var name cleanup * revert(diagnostics): changes to line number, before merging Christian's * Add API for slice locations * Emit diagnostic for unsupported ABIs * add(diagnostics): line number and file names to diagnostics * chore: fmt * add(diagnostics): label to say 'from bindgen' * add(diagnostics): add_footer, add a warning with footer info * add(diagnostics): add a warning with footer info * add(diagnostics): add a warning in the Diagnostics instead of copying everywhere * Remove IDs that are not shown and use `diagnostic` instead of `warning` * Remove unused function * Deduplciate log entry * Introduce `Level` * Fix clippy warning * Simplify duplicated macro diagnostic * Unify source extraction * Simplify non-fatal rustfmt error diagnostic * Print all diagnostic lines when using `cargo:warning` * Put all the diagnostic logic under the experimental flag * Avoid `bool` parameters * Clean rebase debris * Disable duplicated macros warning for now * Emit warning when using a deprecated Rust target * Document the `emit_diagnostics` method * Update Changelog * Remove diagnostics section from book. Diagnostics are prone to change so keeping the book up to date might require some automation. * Run rustfmt * Fix clippy warning * Remove file added by accident --------- Co-authored-by: Amanjeev Sethi <aj@amanjeev.com>
- Loading branch information
Showing
12 changed files
with
615 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.