about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-03 14:12:44 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-03 17:01:16 +0530
commitd0fcb1f53c9f81fbcae5379dd1c0577a8605172c (patch)
tree0a7781a0d484eaf5a994196bbf47a75826805517 /src/libstd/sys/unix/stack_overflow.rs
parentea208a87a5d54d58ddf10302b8c3fad479afcae0 (diff)
parent89776aee49a8d896521c62eb6e33b88b9122880c (diff)
downloadrust-d0fcb1f53c9f81fbcae5379dd1c0577a8605172c.tar.gz
rust-d0fcb1f53c9f81fbcae5379dd1c0577a8605172c.zip
Rollup merge of #22990 - japaric:privATe, r=alexcrichton
 Associated types are now treated as part of the public API by the privacy checker.

If you were exposing a private type in your public API via an associated type, make that type public:

``` diff
  pub struct PublicType { .. }

- struct Struct { .. }
+ pub struct Struct { .. }

  pub trait PublicTrait {
      type Output;

      fn foo(&self) -> Self::Output;
  }

  impl PublicTrait for PublicType {
      type Output = Struct;

      fn foo(&self) -> Struct {  // `Struct` is part of the public API, it must be marked as `pub`lic
          ..
      }
  }
```

[breaking-change]

---

r? @nikomatsakis
closes #22912
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions