about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-02-24 12:02:40 +0530
committerGitHub <noreply@github.com>2023-02-24 12:02:40 +0530
commit8c135eecac6277a1e2b899db898d2a93c78c4a03 (patch)
tree5faa82c3af8411192833110bf49cb13cef2bf7c6 /library/std/src/sys/unix/stack_overflow.rs
parent07c993eba8b76eae497e98433ae075b00f01be10 (diff)
parent3aeb43cb788c455cb7817bb8dcd7a752cf052240 (diff)
downloadrust-8c135eecac6277a1e2b899db898d2a93c78c4a03.tar.gz
rust-8c135eecac6277a1e2b899db898d2a93c78c4a03.zip
Rollup merge of #106541 - fee1-dead-contrib:no-const-check-no, r=thomcc
implement const iterator using `rustc_do_not_const_check`

Previous experiment: #102225.

Explanation: rather than making all default methods work under `const` all at once, this uses `rustc_do_not_const_check` as a workaround to "trick" the compiler to not run any checks on those other default methods. Any const implementations are only required to implement the `next` method. Any actual calls to the trait methods other than `next` will either error in compile time (at CTFE runs), or run the methods correctly if they do not have any non-const operations. This is extremely easy to maintain, remove, or improve.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions