]> git.lizzy.rs Git - rust.git/commit
Derive PartialOrd, Ord and Hash for bitflags types.
authornham <hamann.nick@gmail.com>
Wed, 30 Jul 2014 19:53:40 +0000 (15:53 -0400)
committernham <hamann.nick@gmail.com>
Wed, 30 Jul 2014 20:04:33 +0000 (16:04 -0400)
commitf3e0db15592d71b8b7125bffbf73df231be8da9d
tree2633af8d93efcc10e15dbe1e3fb30c39b99fda3e
parent72e2c7dec34bd87fab6bb15bb7d3d97269d4afd3
Derive PartialOrd, Ord and Hash for bitflags types.

In order to prevent users from having to manually implement Hash and Ord for
bitflags types, this commit derives these traits automatically.

This breaks code that has manually implemented any of these traits for types
created by the bitflags! macro. Change this code by removing implementations
of these traits.

[breaking-change]
src/libstd/bitflags.rs
src/libstd/io/mod.rs