Skip to content

use --diagnostic-width rustflag to fix ui test output width#325

Merged
dtolnay merged 1 commit intodtolnay:masterfrom
davidhewitt:fixed-width
Jan 30, 2026
Merged

use --diagnostic-width rustflag to fix ui test output width#325
dtolnay merged 1 commit intodtolnay:masterfrom
davidhewitt:fixed-width

Conversation

@davidhewitt
Copy link
Contributor

Fixes #324

This uses the --diagnostic-width flag to rustc to ensure that output does not change with UI test size.

140 was selected as the default width if rustc cannot infer a width from a terminal (and also the same width that would be used if #315 was used on nightly).

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay merged commit 17fd349 into dtolnay:master Jan 30, 2026
12 checks passed
@davidhewitt
Copy link
Contributor Author

Thanks for the swift merge & release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

output is sensitive to terminal width

2 participants