Files
rust/library/core/src
Guillaume Gomez eb62779f2d Rollup merge of #88954 - nbdd0121:panic3, r=oli-obk
Allow `panic!("{}", computed_str)` in const fn.

Special-case `panic!("{}", arg)` and translate it to `panic_display(&arg)`. `panic_display` will behave like `panic_any` in cosnt eval and behave like `panic!(format_args!("{}", arg))` in runtime.

This should bring Rust 2015 and 2021 to feature parity in terms of `const_panic`; and hopefully would unblock the stabilisation of #51999.

`@rustbot` modify labels: +T-compiler +T-libs +A-const-eval +A-const-fn

r? `@oli-obk`
2021-09-17 17:41:19 +02:00
..
2021-09-12 02:30:24 +00:00
2021-08-07 19:03:08 +02:00
2021-09-06 13:18:05 +02:00
2021-09-08 20:51:05 -04:00
2021-09-15 03:06:53 +00:00
2021-09-15 03:06:53 +00:00
2021-09-12 02:30:24 +00:00
2021-09-08 20:51:05 -04:00
2021-06-23 17:49:26 +02:00
2021-08-17 07:15:54 +00:00
2021-08-21 15:09:03 -07:00
2021-06-23 16:26:46 -04:00
2021-04-21 14:38:24 +02:00
2021-09-12 02:23:08 +00:00
2021-03-03 11:23:29 +01:00
2021-09-06 13:18:05 +02:00
2021-08-17 07:15:54 +00:00
2021-04-21 14:38:24 +02:00
2021-09-08 20:51:05 -04:00
2021-09-08 20:51:05 -04:00
2020-09-08 22:26:44 -04:00
2021-09-12 02:23:08 +00:00
2021-08-21 15:09:03 -07:00