]> git.lizzy.rs Git - rust.git/commit
rewrite constants to use NewType::MAX instead of u32::MAX
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 23 Aug 2018 11:46:53 +0000 (07:46 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 7 Sep 2018 15:37:47 +0000 (11:37 -0400)
commitf702bd6a529ce9d2e311ea0254a04228a4a2f129
tree0bb022359f5fd9b0ec5d81fe0fa4f5a5a97b011a
parentc67d518b0d92785323f2c9c94dda25273821b47b
rewrite constants to use NewType::MAX instead of u32::MAX

Also, adjust the MAX to be `u32::MAX - 1`, leaving room for `u32::MAX`
to become a sentinel value in the future.
src/librustc/dep_graph/graph.rs
src/librustc/hir/def_id.rs
src/librustc_data_structures/indexed_vec.rs
src/librustc_data_structures/stable_hasher.rs
src/libserialize/serialize.rs