Skip to content

Commit f6ea423

Browse files
committed
Auto merge of #156934 - saethlin:impossible-bounds-check, r=BoxyUwU
Add a check for impossible predicates to trivial_const The problem here is that trivial consts bypass the MIR pass which replaces bodies with `unreachable` when there are false global bounds. see rust-lang/rust#147721 (comment). This fixes the problem, but it is a bit hacky. But maybe all the handling of false global bounds is hacky?
2 parents 4e4d23c + c2e9ad7 commit f6ea423

0 file changed

File tree

    0 commit comments

    Comments
     (0)