Skip to content
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

Replace module MIN/MAX and min/max_value() with assoc consts #843

Merged
merged 1 commit into from
Mar 29, 2020

Conversation

faern
Copy link
Contributor

@faern faern commented Mar 27, 2020

Since it's recommended use use the integer associated constants for new code from Rust 1.43 the docs better mention them instead of the older slightly less recommended versions.

EDIT: Corresponding PR doing the same thing in most of the rust repo comes soon. But I thought submodules get their own PRs(?). Please enlighten me to what the procedure is.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @gnzlbg (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@faern
Copy link
Contributor Author

faern commented Mar 27, 2020

The failing check seems to be spurious, or at least not caused by my changes in this PR.

@Amanieu
Copy link
Member

Amanieu commented Mar 29, 2020

Can you rebase now that #845 is merged?

@faern faern force-pushed the assoc-int-consts-in-docs branch from 0109546 to 46b9c31 Compare March 29, 2020 16:06
@faern
Copy link
Contributor Author

faern commented Mar 29, 2020

Done

@Amanieu Amanieu merged commit e8b70b8 into rust-lang:master Mar 29, 2020
@faern faern deleted the assoc-int-consts-in-docs branch April 6, 2020 00:16
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.

4 participants