]> git.lizzy.rs Git - rust.git/commit
auto merge of #18887 : aturon/rust/controlled-inherit, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 13 Nov 2014 19:32:21 +0000 (19:32 +0000)
committerbors <bors@rust-lang.org>
Thu, 13 Nov 2014 19:32:21 +0000 (19:32 +0000)
commit15ba87f0314fda5e81603f37ae5f40e2022bcfc1
treeb65785eae17a8f621ee5a2f71c29f76a68e85e6e
parent37ea270accf97fc4eed21a7373c3e7e62de7bbeb
parent83521954267b3555bfb3a185a187b2c2d929e453
auto merge of #18887 : aturon/rust/controlled-inherit, r=alexcrichton

This patch tweaks the stability inheritance infrastructure so that
`#{stable]` attributes are not inherited. Doing so solves two problems:

1. It allows us to mark module *names* as stable without accidentally
marking the items they contain as stable.

2. It means that a `#[stable]` attribution must always appear directly
on the item it applies to, which makes it easier for reviewers to catch
changes to stable APIs.

Fixes #17484