Files
rust/tests/ui
bors 0ab75c37b6 Auto merge of #5977 - xvschneider:AddLintPanicInResult, r=matthiaskrgr
Add lint panic in result

### Change
Adding a new "restriction" lint that will emit a warning when using "panic", "unimplemented" or "unreachable" in a function of type option/result.

### Motivation
Some codebases must avoid crashes at all costs, and hence functions of type option/result must return an error instead of crashing.

### Test plan
Running:
TESTNAME=panic_in_result cargo uitest ---

changelog: none
2020-09-10 16:22:20 +00:00
..
2020-08-17 13:55:05 +01:00
2020-01-07 18:38:12 +09:00
2020-04-19 10:56:15 -04:00
2020-04-19 10:56:15 -04:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-06-10 01:35:47 +00:00
2020-01-31 20:21:10 +01:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-02-01 20:28:27 +09:00
2020-01-07 18:38:12 +09:00
2020-04-19 21:00:25 +02:00
2019-12-21 16:20:30 +01:00
2019-12-21 16:20:30 +01:00
2020-01-12 19:54:17 +08:00
2020-01-12 19:54:17 +08:00
2020-01-26 07:01:16 +09:00
2020-04-09 08:08:36 +02:00
2020-03-03 18:06:59 -08:00
2020-02-23 22:36:15 -08:00
2020-02-01 20:28:27 +09:00
2020-01-07 18:38:12 +09:00
2020-08-02 23:20:00 +08:00
2020-01-31 20:21:10 +01:00
2020-04-20 15:47:08 -04:00
2020-01-19 10:14:03 +09:00
2020-01-07 18:38:12 +09:00
2019-12-24 03:06:52 +07:00
2019-12-24 03:06:52 +07:00
2020-01-31 20:21:10 +01:00
2020-01-04 11:20:11 -06:00
2020-01-04 11:20:11 -06:00
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2020-01-14 08:32:33 +09:00
2020-01-14 08:32:33 +09:00
2020-01-07 18:38:12 +09:00
2020-04-23 16:30:06 -07:00
2020-04-26 18:00:51 +03:00
2020-02-04 22:53:24 +01:00
2020-01-30 12:06:42 +09:00
2020-01-30 12:06:42 +09:00
2020-01-07 18:38:12 +09:00
2019-12-31 09:22:35 -08:00
2020-01-10 04:35:37 +09:00
2020-07-10 07:39:28 -04:00
2020-01-07 18:38:12 +09:00
2020-01-14 08:32:33 +09:00
2020-01-26 07:01:16 +09:00
2019-12-03 18:37:07 +01:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-01-31 20:21:10 +01:00
2020-03-03 10:48:08 +01:00
2020-02-04 22:53:24 +01:00
2020-02-04 22:53:24 +01:00
2020-02-04 22:53:24 +01:00
2019-12-18 18:59:43 +02:00
2020-03-20 22:52:53 +00:00
2020-04-08 08:37:20 -07:00
2020-01-07 18:38:12 +09:00
2020-03-31 16:13:51 +05:30
2020-01-20 10:56:02 +09:00
2020-01-20 21:07:31 +09:00
2020-03-04 00:56:43 +01:00
2020-03-04 00:56:43 +01:00
2019-12-03 13:42:05 +01:00
2020-09-10 15:23:38 +02:00
2020-09-10 15:23:38 +02:00
2020-01-07 18:38:12 +09:00
2020-04-02 18:31:31 -07:00
2020-08-27 19:36:28 +02:00
2020-08-27 19:36:28 +02:00
2019-12-27 22:07:55 +09:00
2019-12-27 22:07:55 +09:00
2019-12-27 22:07:55 +09:00
2020-01-07 18:38:12 +09:00
2020-01-07 18:38:12 +09:00
2020-03-29 22:22:36 +02:00
2020-01-12 06:08:58 +09:00
2020-01-12 06:08:58 +09:00
2020-03-11 06:35:07 +09:00
2020-01-25 18:06:52 +03:00
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00