bors
6e0a8bf790
Auto merge of #86998 - m-ou-se:const-panic-fmt-as-str, r=oli-obk
...
Make const panic!("..") work in Rust 2021.
During const eval, this replaces calls to core::panicking::panic_fmt and std::panicking::being_panic_fmt with a call to a new const fn: core::panicking::const_panic_fmt. That function uses fmt::Arguments::as_str() to get the str and calls panic_str with that instead.
panic!() invocations with formatting arguments are still not accepted, as the creation of such a fmt::Arguments cannot be done in constant functions right now.
r? `@RalfJung`
2021-07-29 07:12:07 +00:00
..
2021-06-23 16:26:46 -04:00
2021-07-27 16:03:09 -04:00
2021-07-27 16:24:45 +00:00
2021-07-28 18:28:19 +09:00
2021-07-08 16:16:28 +02:00
2021-07-09 22:03:48 +02:00
2021-07-28 16:12:25 +02:00
2021-07-18 14:21:56 +09:00
2021-07-18 20:33:23 +00:00
2021-07-19 21:25:43 +00:00
2021-07-27 12:27:08 -03:00
2021-07-24 17:18:15 -04:00
2021-07-29 06:11:47 +09:00
2021-07-19 08:43:35 -07:00
2021-07-25 04:34:58 +00:00
2021-07-28 18:28:19 +09:00
2021-06-23 16:26:46 -04:00
2021-07-28 16:10:41 +02:00
2021-07-27 16:24:45 +00:00
2021-07-18 11:14:07 +02:00
2021-05-31 13:55:43 +02:00
2021-07-24 10:21:23 +00:00
2021-07-27 19:52:40 +09:00
2021-07-26 20:17:28 -04:00
2021-07-27 16:24:45 +00:00
2021-07-24 11:46:44 -05:00
2021-07-13 17:58:50 +09:00
2021-07-18 11:14:07 +02:00
2021-07-25 11:11:02 +00:00
2021-07-28 09:01:11 +00:00
2021-07-29 07:12:07 +00:00
2021-07-28 09:01:11 +00:00
2021-07-27 05:53:31 +00:00
2021-07-08 16:16:28 +02:00
2021-07-25 12:23:37 +02:00
2021-05-12 13:58:43 +02:00
2021-07-26 21:15:18 +00:00
2021-07-25 20:27:58 -05:00
2021-07-25 20:43:27 -05:00
2021-07-27 16:24:45 +00:00
2021-07-25 12:22:47 +02:00
2021-06-17 21:48:02 +02:00
2021-07-27 19:52:40 +09:00
2021-07-28 16:12:25 +02:00
2021-07-06 11:28:04 +02:00
2021-07-25 17:38:44 +01:00
2021-07-28 01:41:52 +02:00
2021-07-16 16:29:02 -05:00
2021-07-10 20:54:49 +08:00
2021-05-31 13:55:43 +02:00
2021-07-28 18:28:23 +09:00