-
Notifications
You must be signed in to change notification settings - Fork 14k
Description
Status: The rustc side has been stabilized in 1.64 as the --diagnostic-width option. This tracking issue is still open for the cargo side of changes. See #84673 (comment).
This is a tracking issue for the -Z terminal-width flag. This flag tells rustc the width of the terminal so that it can truncate long lines in diagnostic output to the correct length. A corresponding flag of the same name is available in Cargo, which detects the terminal width and sends in the appropriate value to rustc.
Unresolved Questions
Unknown.
Implementation history
- Original issue: rustc should "ellipsis" very long lines when printing warnings #62999
- Original implementation: Strip code to the left and right in diagnostics for long lines #63402
- Cargo implementation: Add support for rustc's
-Z terminal-width. cargo#8427 - Stabilization and option change: sess: stabilize
-Zterminal-widthas--diagnostic-width#95635
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.