Gary Guo
11c0e58c74
Allow panic!("{}", computed_str)
in const fn.
2021-09-15 21:56:43 +01:00
Mark Rousskov
b4e7649d6d
Bump stage0 compiler to 1.56
2021-09-08 20:51:05 -04:00
Cameron Steffen
975bc18481
Make Arguments constructors unsafe
2021-08-16 16:28:16 +00:00
Mara Bos
0b8033ad8d
Improve comments about const panic handling
...
Co-authored-by: Ralf Jung <post@ralfj.de>
2021-07-28 16:18:38 +02:00
Mara Bos
b48274fd98
Use unreachable_unchecked in const_panic_fmt.
2021-07-28 16:12:30 +02:00
Mara Bos
f827d3e285
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.
2021-07-28 16:10:41 +02:00
hyd-dev
bc8093ed55
Fix panic message of assert_failed_inner
2021-03-13 18:50:43 +08:00
Mara Bos
eb18746bc6
Add assert_matches!(expr, pat).
2021-03-04 18:07:20 +01:00
Alphyr
a357d86b7c
Hide internals items in documentation
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2021-02-14 23:39:43 +01:00
Benoît du Garreau
546d062820
Apply suggestions
...
- Move `assert_failed` to core::panicking`
- Make `assert_failed` use an enum instead of a string
2021-02-14 23:39:42 +01:00
Jake Goulding
dcef5ff372
Bump bootstrap compiler version
2020-11-19 19:23:36 -05:00
Mara Bos
4f7ffbf351
Fix const core::panic!(non_literal_str).
2020-10-22 18:41:35 +02:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00