Record the publicity of struct fields and enum variants.
Record the publicity of struct fields and enum variants.

The stability check checks the `PublicItems` map when giving errors if
there is a #[stable] item with a public contents that doesn't not have
its own stability. Without recording this, struct fields and enum
variants will not get errors for e.g. stable modules with unmarked
functions internally.

This is just improving the compiler's precision to give the standard
library developers more information earlier.

E.g.

    #![staged_api]
    #![feature(staged_api)]
    #![crate_type = "lib"]

    #[stable(feature = "rust1", since = "1.0.0")]
    pub struct Foo {
        pub x: i32
    }

    #[stable(feature = "rust1", since = "1.0.0")]
    pub mod bar {
        pub fn baz() {}
    }

Without the patch it gives:

    test.rs:12:5: 12:20 error: This node does not have a stability attribute
    test.rs:12     pub fn baz() {}
                   ^~~~~~~~~~~~~~~
    error: aborting due to previous error

With the patch it gives:

    test.rs:7:9: 7:15 error: This node does not have a stability attribute
    test.rs:7     pub x: i32
                      ^~~~~~
    test.rs:12:5: 12:20 error: This node does not have a stability attribute
    test.rs:12     pub fn baz() {}
                   ^~~~~~~~~~~~~~~
    error: aborting due to 2 previous errors

kwantam/rust,XMPPwocky/rust,carols10cents/rust,seanrivera/rust,zachwick/rust,mdinger/rust,GBGamer/rust,robertg/rust,GBGamer/rust,avdi/rust,graydon/rust,ebfull/rust,pshc/rust,GBGamer/rust,sae-bom/rust,philyoon/rust,graydon/rust,rprichard/rust,pshc/rust,jashank/rust,GBGamer/rust,jroesch/rust,aneeshusa/rust,XMPPwocky/rust,aepsil0n/rust,rohitjoshi/rust,victorvde/rust,aepsil0n/rust,l0kod/rust,GBGamer/rust,GBGamer/rust,rprichard/rust,philyoon/rust,rohitjoshi/rust,ruud-v-a/rust,omasanori/rust,rohitjoshi/rust,rohitjoshi/rust,sae-bom/rust,aidancully/rust,zubron/rust,zaeleus/rust,kwantam/rust,aepsil0n/rust,nwin/rust,l0kod/rust,miniupnp/rust,AerialX/rust-rt-minimal,miniupnp/rust,andars/rust,AerialX/rust,miniupnp/rust,sae-bom/rust,dwillmer/rust,l0kod/rust,pshc/rust,KokaKiwi/rust,aidancully/rust,aepsil0n/rust,robertg/rust,victorvde/rust,kwantam/rust,miniupnp/rust,jashank/rust,l0kod/rust,aneeshusa/rust,pshc/rust,victorvde/rust,pshc/rust,omasanori/rust,dwillmer/rust,krzysz00/rust,pshc/rust,omasanori/rust,omasanori/rust,carols10cents/rust,mvdnes/rust,dwillmer/rust,mvdnes/rust,seanrivera/rust,philyoon/rust,miniupnp/rust,jroesch/rust,pelmers/rust,zachwick/rust,zubron/rust,ruud-v-a/rust,aidancully/rust,vhbit/rust,sae-bom/rust,mvdnes/rust,l0kod/rust,kwantam/rust,pelmers/rust,carols10cents/rust,zubron/rust,zaeleus/rust,XMPPwocky/rust,graydon/rust,aepsil0n/rust,jroesch/rust,avdi/rust,nwin/rust,krzysz00/rust,mvdnes/rust,seanrivera/rust,zubron/rust,carols10cents/rust,seanrivera/rust,ebfull/rust,gifnksm/rust,dwillmer/rust,ruud-v-a/rust,philyoon/rust,zaeleus/rust,GBGamer/rust,jashank/rust,ejjeong/rust,zachwick/rust,KokaKiwi/rust,nwin/rust,rprichard/rust,andars/rust,philyoon/rust,mvdnes/rust,mahkoh/rust,jashank/rust,mahkoh/rust,pelmers/rust,vhbit/rust,ebfull/rust,cllns/rust,robertg/rust,ejjeong/rust,jashank/rust,TheNeikos/rust,mdinger/rust,vhbit/rust,KokaKiwi/rust,aidancully/rust,vhbit/rust,victorvde/rust,miniupnp/rust,zachwick/rust,krzysz00/rust,reem/rust,zachwick/rust,cllns/rust,pelmers/rust,ejjeong/rust,andars/rust,robertg/rust,aneeshusa/rust,dwillmer/rust,zubron/rust,mahkoh/rust,nwin/rust,rprichard/rust,rohitjoshi/rust,mihneadb/rust,seanrivera/rust,pshc/rust,dwillmer/rust,KokaKiwi/rust,rprichard/rust,nwin/rust,gifnksm/rust,GBGamer/rust,cllns/rust,zaeleus/rust,sae-bom/rust,AerialX/rust,mihneadb/rust,mahkoh/rust,TheNeikos/rust,jroesch/rust,aidancully/rust,mdinger/rust,robertg/rust,AerialX/rust-rt-minimal,zachwick/rust,miniupnp/rust,omasanori/rust,victorvde/rust,cllns/rust,AerialX/rust,ejjeong/rust,avdi/rust,avdi/rust,krzysz00/rust,kwantam/rust,reem/rust,nwin/rust,mdinger/rust,graydon/rust,graydon/rust,l0kod/rust,ruud-v-a/rust,mvdnes/rust,mihneadb/rust,XMPPwocky/rust,gifnksm/rust,nwin/rust,zaeleus/rust,AerialX/rust,philyoon/rust,jroesch/rust,zubron/rust,XMPPwocky/rust,dwillmer/rust,aneeshusa/rust,kwantam/rust,TheNeikos/rust,gifnksm/rust,cllns/rust,miniupnp/rust,gifnksm/rust,ejjeong/rust,jroesch/rust,avdi/rust,reem/rust,reem/rust,mahkoh/rust,ebfull/rust,vhbit/rust,l0kod/rust,AerialX/rust-rt-minimal,ebfull/rust,AerialX/rust,AerialX/rust,seanrivera/rust,AerialX/rust-rt-minimal,aidancully/rust,rohitjoshi/rust,cllns/rust,ebfull/rust,krzysz00/rust,AerialX/rust-rt-minimal,graydon/rust,mdinger/rust,ruud-v-a/rust,andars/rust,pelmers/rust,carols10cents/rust,TheNeikos/rust,andars/rust,AerialX/rust-rt-minimal,rprichard/rust,nwin/rust,vhbit/rust,ejjeong/rust,sae-bom/rust,pshc/rust,victorvde/rust,TheNeikos/rust,TheNeikos/rust,ruud-v-a/rust,mihneadb/rust,mdinger/rust,reem/rust,krzysz00/rust,andars/rust,avdi/rust,jroesch/rust,robertg/rust,aneeshusa/rust,jashank/rust,carols10cents/rust,mihneadb/rust,jashank/rust,dwillmer/rust,vhbit/rust,mahkoh/rust,aepsil0n/rust,gifnksm/rust,KokaKiwi/rust,XMPPwocky/rust,omasanori/rust,l0kod/rust,reem/rust,jroesch/rust,zubron/rust,vhbit/rust,KokaKiwi/rust,pelmers/rust,mihneadb/rust,aneeshusa/rust,jashank/rust,zubron/rust,zaeleus/rust