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
..
alloc Consistent spelling of "adapter" in the standard library 2021-07-30 17:23:07 +02:00
array Auto merge of #88469 - patrick-gu:master, r=dtolnay 2021-09-05 01:56:25 +00:00
char Fix linkcheck issues 2021-09-12 02:30:24 +00:00
convert impl const From<num> for num 2021-08-07 19:03:08 +02:00
fmt Ignore automatically derived impls of Clone and Debug in dead code analysis 2021-09-09 19:49:07 +02:00
future Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
hash Suggest deriving traits if possible 2021-09-06 13:18:05 +02:00
iter Document the closure arguments for reduce. 2021-09-14 14:22:49 +08:00
macros Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
mem Const Deref 2021-09-15 03:06:53 +00:00
num Wrapping<T> has the same layout and ABI as T 2021-09-13 12:39:45 -07:00
ops Const Deref 2021-09-15 03:06:53 +00:00
panic Fix unused sync::atomic import on targets without atomics 2021-07-31 17:27:29 -07:00
prelude
ptr remove redundant / misplaced sentence from docs 2021-09-01 20:52:30 -07:00
slice Fix linkcheck issues 2021-09-12 02:30:24 +00:00
str Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
stream
sync Constified Default implementations 2021-08-17 07:15:54 +00:00
task Remove the TryV2 alias 2021-08-21 15:09:03 -07:00
unicode
any.rs
ascii.rs
bool.rs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
borrow.rs
cell.rs Fill in the tracking issue for #![feature(const_unsafecell_get_mut)] 2021-09-11 00:07:14 +03:00
clone.rs Ignore automatically derived impls of Clone and Debug in dead code analysis 2021-09-09 19:49:07 +02:00
cmp.rs Suggest deriving traits if possible 2021-09-06 13:18:05 +02:00
default.rs Constified Default implementations 2021-08-17 07:15:54 +00:00
ffi.rs
hint.rs Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
internal_macros.rs Remove unnecessary #[unstable] from internal macro. 2021-08-05 12:55:35 +02:00
intrinsics.rs Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
lazy.rs
lib.rs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
marker.rs Rollup merge of #87904 - kpreid:unsize, r=jyn514 2021-09-11 08:23:38 -07:00
option.rs Clarify what “a container” is in FromIterator<Option<A>> for Option<V> doc. 2021-09-04 11:30:14 -07:00
panic.rs Allow panic!("{}", computed_str) in const fn. 2021-09-15 21:56:43 +01:00
panicking.rs Allow panic!("{}", computed_str) in const fn. 2021-09-15 21:56:43 +01:00
pin.rs Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
primitive_docs.rs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
primitive.rs
result.rs Remove the TryV2 alias 2021-08-21 15:09:03 -07:00
time.rs Adding examples to docs of std::time module 2021-08-29 23:59:35 -03:00
tuple.rs
unit.rs