-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Experiment: Const iterrator range with #[rustc_do_not_const_check]
#107647
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Experiment: Const iterrator range with #[rustc_do_not_const_check]
#107647
Conversation
Failed to set assignee to
|
#[rustc_do_not_const_check]
#[rustc_do_not_const_check]
@fee1-dead Do you know why this doesn't work? |
Enable |
It is enabled in library/core/src/lib.rs |
Oh, then the function needs to be const-unstable so it can use unstable const features EDIT: hmm it is unstable though.. |
This is probably a bug that needs fixing. The checking for |
|
And really the body of the |
4ef14a4
to
074431b
Compare
This commit now only implements const |
074431b
to
31f0fd8
Compare
@fee1-dead Adding Since this is still waiting for |
e79c8cd
to
a805f13
Compare
…heck, implement const Iterator and DoubleEndedIterator for Range.
788266c
to
c9c9876
Compare
☔ The latest upstream changes (presumably #108421) made this pull request unmergeable. Please resolve the merge conflicts. |
TODO / this code will probably be used later in #104100:
rustc_do_not_const_check
#106541 to land and be in Boostrapr? @ghost