Skip to content

Commit 2a87e44

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 e88033d + 1f4c42d commit 2a87e44

0 file changed

File tree

    0 commit comments

    Comments
     (0)