]> git.lizzy.rs Git - rust.git/commitdiff
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)
check that first arg to `panic!()` in const is `&str`

closes #66693

~~TODO: regression test~~

cc `@RalfJung` for error message wording

1  2 
compiler/rustc_mir/src/transform/check_consts/ops.rs
compiler/rustc_mir/src/transform/check_consts/validation.rs