Use T::MAX instead of std::T::MAX where T is an integer#1327
Merged
steveklabnik merged 1 commit intorust-lang:masterfrom Apr 6, 2020
Merged
Use T::MAX instead of std::T::MAX where T is an integer#1327steveklabnik merged 1 commit intorust-lang:masterfrom
steveklabnik merged 1 commit intorust-lang:masterfrom
Conversation
dtolnay
approved these changes
Apr 6, 2020
Member
dtolnay
left a comment
There was a problem hiding this comment.
Looks good but I don't have permissions on this repo. Maybe @marioidival?
Centril
added a commit
to Centril/rust
that referenced
this pull request
Apr 7, 2020
…tolnay Use assoc int submodules Bumping some submodules to the commits their masters currently point at. The main point of this is to get the associated integer/float constant documentation updates that were recently merged to them: * rust-lang/nomicon#207 * rust-lang/rust-by-example#1327 * rust-lang/stdarch#848 But for some, a few more changes slipped by that happened to be in the master branch of these submodules. r? @dtolnay
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this pull request
Apr 7, 2020
…tolnay Use assoc int submodules Bumping some submodules to the commits their masters currently point at. The main point of this is to get the associated integer/float constant documentation updates that were recently merged to them: * rust-lang/nomicon#207 * rust-lang/rust-by-example#1327 * rust-lang/stdarch#848 But for some, a few more changes slipped by that happened to be in the master branch of these submodules. r? @dtolnay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's simpler (shorter) to access MIN/MAX directly on the integer types now. This repository only had a single instance of this, so the PR is tiny. But it's basically a follow up of rust-lang/rust#69860 to make all documentation consistently use the newest version of the constants.
r? @dtolnay