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

Use isize::MAX directly on type instead of module #207

Merged
merged 3 commits into from
Apr 6, 2020

Conversation

faern
Copy link
Contributor

@faern faern commented Apr 5, 2020

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 versions of the constants.

r? @dtolnay

@Centril
Copy link
Contributor

Centril commented Apr 5, 2020

r? @Centril @bors r+ rollup

@Centril
Copy link
Contributor

Centril commented Apr 5, 2020

Oh, wrong repo... no bors here :P

@faern
Copy link
Contributor Author

faern commented Apr 5, 2020

Oops. I pushed a fix for what the CI failed at at basically the same time as you approved. But it only fixed one of two errors. Should I try to fix the remaining one, merge as is, or revert that fix?

@Centril
Copy link
Contributor

Centril commented Apr 5, 2020

We'll need to fix the CI errors before merging.

@faern
Copy link
Contributor Author

faern commented Apr 5, 2020

The errors were not caused by this PR. But we can fix them while at it, sure :)

@faern
Copy link
Contributor Author

faern commented Apr 6, 2020

@Centril Done!

@Centril Centril merged commit 6eb24d6 into rust-lang:master Apr 6, 2020
@faern faern deleted the use-assoc-int-consts branch April 6, 2020 20:12
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
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