Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize the effect of --verbose on '$N others' diagnostic #277

Merged
merged 2 commits into from
Jul 6, 2024
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jul 6, 2024

The --verbose flag from #270 was intended to control type name shortening (#269: "consider using `--verbose` to print the full type name to the console"). But it also changes the behavior of the kind of errors from #198. With --verbose, instead of "and $N others" rustc will print the full list of other trait impls, regardless of how many.

This PR normalizes the effect of --verbose on such diagnostics so that they better resemble what a real user would see, and to reduce churn in ui tests containing long impl lists.

@dtolnay dtolnay merged commit ef6893b into master Jul 6, 2024
20 checks passed
@dtolnay dtolnay deleted the nothers branch July 6, 2024 19:11
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.

1 participant