-
Notifications
You must be signed in to change notification settings - Fork 13.8k
test: Subtract code_offset from width for ui_testing #147165
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
base: master
Are you sure you want to change the base?
Conversation
The Miri subtree was changed cc @rust-lang/miri Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
r? @nnethercote rustbot has assigned @nnethercote. Use |
From a test suite maintenance perspective this looks not great -- how does one know whether one has to add a random |
Personally, I would only add
|
Without commenting on whether we want to have those output changes or not -- if the output does change like that, I'd much rather just have the stderr files updated in Miri than add random compiler flags. |
@@ -1,4 +1,5 @@ | |||
//@aux-build:proc_macros.rs | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for splitting this out into a separate commit!
I'm going to pass this on to David, who already had intelligent things to say in the Zulip thread. r? davidtwco |
annotate-snippets
does not have a "UI test" mode likerustc
, where the code offset is not subtracted from the column width. This makes it soannotate-snippets
will shift the output for some very long tests 5 - 7 columns to the left. As part of my work to haverustc
useannotate-snippets
, and to reduce the test differences between the two, I figured it would be best ifrustc
started subtracting the code offset from the width as well.The first commit exists to keep the test output changes of adding a new line to a test separate from adding the
--diagnostic-width
flag in the second commit. This makes it easier to verify that adding the flag does not affect the test's output.Zulip discussion