bors
828bdc2c26
Auto merge of #112849 - m-ou-se:panic-message-format, r=thomcc
...
Change default panic handler message format.
This changes the default panic hook's message format from:
```
thread '{thread}' panicked at '{message}', {location}
```
to
```
thread '{thread}' panicked at {location}:
{message}
```
This puts the message on its own line without surrounding quotes, making it easiser to read. For example:
Before:
```
thread 'main' panicked at 'env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`', src/main.rs:4:6
```
After:
```
thread 'main' panicked at src/main.rs:4:6:
env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`
```
---
See this PR by `@nyurik,` which does that for only multi-line messages (specifically because of `assert_eq`): https://github.com/rust-lang/rust/pull/111071
This is the change that does that for *all* panic messages.
2023-08-01 14:15:09 +00:00
..
2023-05-01 16:15:13 +08:00
2023-06-29 11:15:45 +01:00
2023-04-12 22:50:10 +00:00
2023-08-01 14:15:09 +00:00
2023-05-15 00:00:00 +00:00
2023-07-25 14:30:58 +02:00
2023-04-16 11:38:52 +00:00
2023-06-01 14:45:18 +00:00
2023-06-12 20:24:48 +08:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-07-25 14:30:58 +02:00
2023-05-21 14:09:03 +02:00
2023-07-10 20:09:26 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-04-15 07:46:46 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-05-15 00:00:00 +00:00
2023-05-15 00:00:00 +00:00
2023-07-04 15:54:18 +02:00
2023-07-04 15:54:18 +02:00
2023-07-04 15:54:18 +02:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-07-21 22:35:57 -07:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-05-15 00:00:00 +00:00
2023-05-15 00:00:00 +00:00
2023-02-21 05:21:07 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:54:13 -03:00
2023-02-16 11:42:35 -03:00
2023-07-18 21:53:34 -04:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-07-21 22:35:57 -07:00
2023-05-04 11:22:40 +01:00
2023-05-04 11:22:40 +01:00
2023-02-16 11:42:35 -03:00
2023-05-15 00:00:00 +00:00
2023-05-15 00:00:00 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-03-21 11:09:27 +00:00
2023-06-01 14:45:18 +00:00
2023-05-15 00:00:00 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-06-01 14:45:18 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-07-18 21:53:34 -04:00
2023-05-21 14:09:03 +02:00
2023-05-05 20:36:21 +02:00
2023-06-01 14:45:18 +00:00
2023-06-12 20:24:48 +08:00
2023-03-27 11:08:11 -04:00
2023-06-01 14:45:18 +00:00
2023-06-24 18:04:14 +00:00
2023-06-27 23:31:06 +00:00
2023-04-22 00:47:07 -04:00
2023-06-01 14:45:18 +00:00
2023-07-29 11:47:26 +02:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-06-01 14:45:18 +00:00
2023-06-01 14:45:18 +00:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-06-22 14:11:10 +00:00
2023-06-22 14:11:10 +00:00
2023-06-27 23:31:06 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-15 07:46:46 +00:00
2023-07-18 21:53:34 -04:00