diff options
| author | Lucas Soriano del Pino <lucas_soriano@fastmail.com> | 2024-02-11 11:54:31 +1100 |
|---|---|---|
| committer | Lucas Soriano del Pino <lucas_soriano@fastmail.com> | 2024-02-13 13:07:21 +1100 |
| commit | 3948faec12f72b0b11fd573e3bcfe323de5b6d80 (patch) | |
| tree | 9393ae1074271d93c396848348e68869fb1dbe55 /README.md | |
| parent | 9c26dc1195ec05309ee15c014631fb9abd6cf5d2 (diff) | |
| download | rust-mode-3948faec12f72b0b11fd573e3bcfe323de5b6d80.tar.gz | |
Match panics in compilation-mode
If we encounter a panic when executing Rust code in
`compilation-mode`, we now correctly highlight the location where the
panic occurred.
For example:
```
thread 'main' panicked at src/main.rs:2:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
Here, `src/main.rs:2:5` is highlighted. The developer is then able to
execute `compile-goto-error` to jump to the correct spot in the code.
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Co-authored-by: zlef <zachlefevre@gmail.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions
