about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-22 22:08:03 +0000
committerbors <bors@rust-lang.org>2018-08-22 22:08:03 +0000
commit917945d662c42053383fe3e71cb0f313d585e459 (patch)
tree5a1fc5d8f5be9e7a429cb264a914150975a5ada6 /src/libsyntax/parse
parentf1b506af022fdcb054aa90da1fbcf8c0226292d0 (diff)
parentbd6ae6a6d10f3ebe51d0a7a8d7ef342a65f68ff4 (diff)
downloadrust-917945d662c42053383fe3e71cb0f313d585e459.tar.gz
rust-917945d662c42053383fe3e71cb0f313d585e459.zip
Auto merge of #52011 - oli-obk:dont_you_hate_it_too_when_everything_panics_constantly, r=eddyb
Allow panicking with string literal messages inside constants

r? @eddyb

cc https://github.com/rust-lang/rust/issues/51999

we can't implement things like `panic!("foo: {}", x)` right now because we can't call trait methods (most notably `Display::fmt`) inside constants. Also most of these impls probably have loops and conditions, so it's messy anyway.

But hey `panic!("foo")` works at least.

cc @japaric got any test ideas for `#![no_std]`?
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions