rust/src/liballoc
Huon Wilson 9698221f91 Paper over privacy issues with Deref by changing field names.
Types that implement Deref can cause weird error messages due to their
private fields conflicting with a field of the type they deref to, e.g.,
previously

    struct Foo { x: int }

    let a: Arc<Foo> = ...;
    println!("{}", a.x);

would complain the the `x` field of `Arc` was private (since Arc has a
private field called `x`) rather than just ignoring it.

This patch doesn't fix that issue, but does mean one would have to write
`a._ptr` to hit the same error message, which seems far less
common. (This patch `_`-prefixes all private fields of
`Deref`-implementing types.)

cc #12808
2014-05-25 10:23:37 +10:00
..
arc.rs Paper over privacy issues with Deref by changing field names. 2014-05-25 10:23:37 +10:00
heap.rs libcore: Remove all uses of ~str from libcore. 2014-05-22 14:42:02 -07:00
lib.rs Change static.rust-lang.org to doc.rust-lang.org 2014-05-21 19:55:39 -07:00
libc_heap.rs
owned.rs
rc.rs Paper over privacy issues with Deref by changing field names. 2014-05-25 10:23:37 +10:00
util.rs libcore: Remove all uses of ~str from libcore. 2014-05-22 14:42:02 -07:00