-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Make the BUG_REPORT_URL configurable by tools #110989
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Doing it in the subtree is fine for clippy! |
I see the current hook also includes clippy's version, which can be different from rustc's version - I'll see if I can add a custom callback to the hook so clippy can keep that info. rust/src/tools/clippy/src/driver.rs Line 242 in 8ce92da
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
cc @rust-lang/rustdoc as well but the changes to rustdoc are very minor |
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.
Yeah, rustdoc changes look fine.
This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy the entire hook implementation. - Switch clippy to the new hook This also adds a `extra_info` callback so clippy can include its own version number, which differs from rustc's. - Call `install_ice_hook` in rustfmt
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt |
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.
The code changes look good to me. r=me once tool maintainers are satisfied.
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.
Clippy changes look awesome!
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.
👍 on the Miri changes
Make the BUG_REPORT_URL configurable by tools This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy the entire hook implementation. I haven't changed clippy in case they want to make the change upstream instead of the subtree, but I'm happy to do so here if the maintainers want - cc `@rust-lang/clippy` Fixes rust-lang#109486.
Make the BUG_REPORT_URL configurable by tools This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy the entire hook implementation. I haven't changed clippy in case they want to make the change upstream instead of the subtree, but I'm happy to do so here if the maintainers want - cc ``@rust-lang/clippy`` Fixes rust-lang#109486.
Make the BUG_REPORT_URL configurable by tools This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy the entire hook implementation. I haven't changed clippy in case they want to make the change upstream instead of the subtree, but I'm happy to do so here if the maintainers want - cc ```@rust-lang/clippy``` Fixes rust-lang#109486.
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#110577 (Use fulfillment to check `Drop` impl compatibility) - rust-lang#110610 (Add Terminator conversion from MIR to SMIR, part #1) - rust-lang#110985 (Fix spans in LLVM-generated inline asm errors) - rust-lang#110989 (Make the BUG_REPORT_URL configurable by tools ) - rust-lang#111167 (debuginfo: split method declaration and definition) - rust-lang#111230 (add hint for =< as <=) - rust-lang#111279 (More robust debug assertions for `Instance::resolve` on built-in traits with non-standard trait items) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The new
Not sure why this happens, could this be some issue with the The complete (unnormalized) output is:
|
@uweigand that test should not be platform-specific. I don't know why it would fail only on s390x. |
By chance, does s390x have \r\n line endings? |
This is the relevant normalization: it should remove the line completely, but somehow it's being replaced with a space instead. |
No, it's just \n like on other Linux platforms.
It looks like it is removing the line ending of the
Not sure how that could happen ... |
Ah, I think I see what the problem is. The
the first one will remove (multiple) newlines before the line (because of the You can see that when removing the second of those
So if we add the second Note that this only happens if the last line in the backtrace is one of lines with an address - if it is one of the lines with an (We see that last line with address 0 on s390x - that's probably a bug in our backtrace implementation that should be fixed, but really those regexes should handle that case too ...) I think the whitespace in the backtrace output is actually always just plain spaces, so maybe we can simply use:
This works for me (we also need to add one blank line to the stderr output that isn't removed any more now). |
sounds great! @uweigand could you make a PR with that change, please? :) |
Make the BUG_REPORT_URL configurable by tools This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy the entire hook implementation. I haven't changed clippy in case they want to make the change upstream instead of the subtree, but I'm happy to do so here if the maintainers want - cc ````@rust-lang/clippy```` Fixes rust-lang#109486.
Make the BUG_REPORT_URL configurable by tools This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy the entire hook implementation. I haven't changed clippy in case they want to make the change upstream instead of the subtree, but I'm happy to do so here if the maintainers want - cc ````@rust-lang/clippy```` Fixes rust-lang#109486.
This greatly simplifies how hard it is to set a custom bug report url; previously tools had to copy
the entire hook implementation.
I haven't changed clippy in case they want to make the change upstream instead of the subtree, but
I'm happy to do so here if the maintainers want - cc @rust-lang/clippy
Fixes #109486.