]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #88080 - fee1-dead:iterator-const, r=oli-obk
authorMara Bos <m-ou.se@m-ou.se>
Mon, 16 Aug 2021 21:37:34 +0000 (23:37 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 21:37:34 +0000 (23:37 +0200)
Skip assert ICE with default_method_body_is_const

functions marked with #[default_method_body_is_const] would
ICE when being const checked due to it not being a const function:
`tcx.is_const_fn_raw(did)` returns false. We should skip this assert
when it is marked with that attribute.

r? `@oli-obk`


Trivial merge