-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.C-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.
Description
annotate-snippets is a library version of rustc's diagnostic report renderer.
By migrating cargo to use it,
- we make them more consistent
- we have more features (coloring trailing notes/help, snippet rendering, etc)
- prepare for moving some of our diagnostics to be lints
Tasks
- fix(cli): Adjust messages to match rustc #15928
- Clean up multi-line
Shell::note
s - Migrate
Shell::note
to useprint_report
(WIP: fix(shell): Switch to annotate snippets for notes #15945) - Clean up multi-line
Shell::warn
s - Migrate
Shell::warn
to useprint_report
(WIP: fix(shell): Switch to annotate snippets for warnings #15917) - Switch
anyhow::Error
to a custom error type - Cleanup multi-line errors
- Migrate error rendering (
src/cargo/lib.rs
) toprint_report
(WIP: fix(cli): Use Shell::print_report for error chains #15922)
weihanglo
Metadata
Metadata
Assignees
Labels
A-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.C-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.
Type
Projects
Status
No status