about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-10-24 22:39:49 +0200
committerGitHub <noreply@github.com>2020-10-24 22:39:49 +0200
commit0a06d7344b5e83c304b926d03452f4c95d2c89dc (patch)
treee7707c041083b92e099eb28e63c01666b7cbb219 /src/test/codegen/src-hash-algorithm
parent7428de1583b5ebee2e8b35f79ecdcf3590f0b9ea (diff)
parent713012780fd6d7d236f040e6cdc78aaad9d926e4 (diff)
downloadrust-0a06d7344b5e83c304b926d03452f4c95d2c89dc.tar.gz
rust-0a06d7344b5e83c304b926d03452f4c95d2c89dc.zip
Rollup merge of #78069 - fusion-engineering-forks:core-const-panic-str, r=RalfJung
Fix const core::panic!(non_literal_str).

Invocations of `core::panic!(x)` where `x` is not a string literal expand to `panic!("{}", x)`, which is not understood by the const panic logic right now. This adds `panic_str` as a lang item, and modifies the const eval implementation to hook into this item as well.

This fixes the issue mentioned here: https://github.com/rust-lang/rust/issues/51999#issuecomment-687604248

r? `@RalfJung`

`@rustbot` modify labels: +A-const-eval
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions