]> git.lizzy.rs Git - rust.git/commit
Make the fields of RangeInclusive private.
authorkennytm <kennytm@gmail.com>
Thu, 5 Apr 2018 18:03:22 +0000 (02:03 +0800)
committerkennytm <kennytm@gmail.com>
Mon, 30 Apr 2018 13:01:13 +0000 (21:01 +0800)
commitfba903a435ea6e0e3736541cb487586262835e48
tree6ce260eae5de518e942966cae3bb7f5371479153
parent64e6dda0bce96da47e52f7f3e278d05f7a09473c
Make the fields of RangeInclusive private.

Added new()/start()/end() methods to RangeInclusive.

Changed the lowering of `..=` to use RangeInclusive::new().
src/liballoc/lib.rs
src/liballoc/tests/lib.rs
src/libcore/ops/range.rs
src/libcore/tests/lib.rs
src/librustc/hir/lowering.rs
src/librustc_trans/lib.rs