diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-05-02 10:56:26 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-05-05 15:24:36 -0700 |
| commit | 8d1d7d9b5f3920d70b1edcc258a86106527e83f7 (patch) | |
| tree | 2c699707e94f9c3676bfdc3ee0492d728d3ff641 /src/rustllvm/RustWrapper.cpp | |
| parent | c00d8fd9a07244a13d1cc7162a80c3d618935ce8 (diff) | |
| download | rust-8d1d7d9b5f3920d70b1edcc258a86106527e83f7.tar.gz rust-8d1d7d9b5f3920d70b1edcc258a86106527e83f7.zip | |
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]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
