Closed luckysori closed 4 months ago
@luckysori This looks ready for review to me. Do you mind running @rustbot review
? from https://rustc-dev-guide.rust-lang.org/contributing.html#waiting-for-reviews ?
@rustbot review
Error: The feature
shortcut
is not enabled in this repository. To enable it add its section in thetriagebot.toml
in the root of the repository.Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.
I guess it's not enabled on this repo, @zachlefevre.
@psibi Do you mind reviewing this?
Thanks @zachlefevre for the review and @luckysori for the PR and the test case! I have confirmed that it works for me, merging this.
Fixes https://github.com/rust-lang/rust-mode/issues/507.
If we encounter a panic when executing Rust code in
compilation-mode
, we now correctly highlight the location where the panic occurred.For example:
Here,
src/main.rs:2:5
is highlighted. The developer is then able to executecompile-goto-error
to jump to the correct spot in the code.