Skip to content

Change slice::check_range to RangeBounds::assert_len #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2020

Conversation

vetio
Copy link

@vetio vetio commented Oct 31, 2020

In 1.49 the slice::check_range unstable funciton got moved to RangeBounds::assert_len.
rust-lang/rust#76885

In 1.49 the slice::check_range unstable funciton got moved to
RangeBounds::assert_len.
rust-lang/rust#76885
@phil-opp
Copy link
Member

Thanks a lot!

According to the CI, the core::slice import is no longer needed now. Could you remove it?

@phil-opp phil-opp changed the title Changed slice::check_range to RangeBounds::assert_len. Change slice::check_range to RangeBounds::assert_len Oct 31, 2020
@vetio
Copy link
Author

vetio commented Oct 31, 2020

Hi @phil-opp,

Soory about that, missed the warning locally. The import is now removed.

@phil-opp
Copy link
Member

No worries, thanks for the quick update!

@phil-opp phil-opp merged commit 1e20835 into rust-osdev:master Oct 31, 2020
@phil-opp
Copy link
Member

Published as v0.4.2

phil-opp added a commit that referenced this pull request Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants