]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #80734 - abonander:ab/issue-66693, r=oli-obk
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Mon, 1 Mar 2021 23:50:04 +0000 (00:50 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Mar 2021 23:50:04 +0000 (00:50 +0100)
commit865cf0c3b69540f236f95e0cd0ecf939f4834b6c
tree16833b0216e1de7c56dcb49e7aa6b7ba9da11aa7
parent4f20caa6258d4c74ce6b316fd347e3efe81cf557
parent5a33f531cd87988e95a8e811d71b653a7ff9ffca
Rollup merge of #80734 - abonander:ab/issue-66693, r=oli-obk

check that first arg to `panic!()` in const is `&str`

closes #66693

~~TODO: regression test~~

cc `@RalfJung` for error message wording
compiler/rustc_mir/src/transform/check_consts/ops.rs
compiler/rustc_mir/src/transform/check_consts/validation.rs