Aaron Turon 8d1d7d9b5f Change std::io::FilePermission to a typesafe representation
This patch changes `std::io::FilePermissions` from an exposed `u32`
representation to a typesafe representation (that only allows valid
flag combinations) using the `std::bitflags`, thus ensuring a greater
degree of safety on the Rust side.

Despite the change to the type, most code should continue to work
as-is, sincde the new type provides bit operations in the style of C
flags. To get at the underlying integer representation, use the `bits`
method; to (unsafely) convert to `FilePermissions`, use
`FilePermissions::from_bits`.

Closes #6085.

[breaking-change]
2014-05-05 15:24:36 -07:00
..
2014-05-02 23:00:58 -07:00
2014-05-02 23:00:58 -07:00
2014-04-18 17:25:34 -07:00
2014-04-18 17:25:34 -07:00
2014-05-02 23:00:58 -07:00
2014-04-18 17:25:34 -07:00
2014-04-21 00:49:39 -04:00
2014-05-02 23:00:58 -07:00
2014-05-04 22:35:21 -07:00
2014-05-02 23:00:58 -07:00
2014-04-30 10:01:14 -07:00
2014-05-01 19:07:41 -07:00
2014-05-02 23:00:58 -07:00
2014-04-30 17:35:54 +02:00
2014-05-02 23:00:58 -07:00
2014-04-21 00:49:39 -04:00
2014-05-02 23:00:58 -07:00
2014-05-04 22:35:21 -07:00
2014-05-04 22:35:21 -07:00
2014-05-02 23:00:58 -07:00
2014-04-21 00:49:39 -04:00
2014-05-02 23:00:58 -07:00
2014-04-18 17:25:34 -07:00
2014-05-02 23:00:58 -07:00