]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #71366 - faern:use-assoc-int-consts3, r=dtolnay
authorYuki Okushi <huyuumi.dev@gmail.com>
Wed, 22 Apr 2020 01:34:06 +0000 (10:34 +0900)
committerGitHub <noreply@github.com>
Wed, 22 Apr 2020 01:34:06 +0000 (10:34 +0900)
commitf28e3873c55eb4bdcfc496e1f300b97aeb0d189c
treecf842e5abce7ab4af730230b342c338fb93079f8
parent567e54fca5e864f95cd41ca05c113aa6b18d7006
parent9af047ff74f79911b6e251cd1751be8644437158
Rollup merge of #71366 - faern:use-assoc-int-consts3, r=dtolnay

Use assoc int consts3

Define module level int consts with associated constants instead of `min_value()` and `max_value()`. So the code become consistent with what the docs recommend etc. Seems natural.

Also remove the last usages of the int module constants from this repo (except src/test/ directory which I have still not really done anything in). Some places were missed in the previous PRs because the code uses `crate::<IntTy>` to reach the constants.

This is a continuation of #70857

r? @dtolnay
src/libcore/str/pattern.rs