]> git.proxmox.com Git - cargo.git/commit - tests/testsuite/out_dir.rs
Auto merge of #8077 - faern:use-assoc-int-consts, r=ehuss
authorbors <bors@rust-lang.org>
Tue, 28 Apr 2020 01:56:59 +0000 (01:56 +0000)
committerbors <bors@rust-lang.org>
Tue, 28 Apr 2020 01:56:59 +0000 (01:56 +0000)
commit90931d9b31e8b854522fed00916504a3ac6d8619
treeae14af7d5ed717ec6a47b2aa2c400a3382f6a4a1
parenta0a14f2a813b6980efd0719353294c13dcc67985
parentc428c0ef41c19fa5b181847bed932ffc50d31538
Auto merge of #8077 - faern:use-assoc-int-consts, r=ehuss

Use associated constants directly on primitive types instead of modules

This PR is in no way critical. It's more of a code cleanup. It comes as a result of me making https://github.com/rust-lang/rust/pull/70857 and search-and-replacing all usage of the soft-deprecated ways of reaching primitive type constants.

It makes the code slightly shorter, that's basically it. And showcases the recommended way of reaching these consts on new code :)
crates/cargo-test-support/src/lib.rs
tests/testsuite/standard_lib.rs
tests/testsuite/test.rs