]> git.lizzy.rs Git - rust.git/commit
rustc: Improve errors on private static methods
authorAlex Crichton <alex@alexcrichton.com>
Sun, 20 Apr 2014 19:07:15 +0000 (12:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 20 Apr 2014 19:10:46 +0000 (12:10 -0700)
commitc33cedf35918dd1da0a6e41ea7bac8f43f90c484
tree7e9ac77a777df585856ced127c61f1425d95f242
parentba25fecfeffdbc96d31172f483bd20cffa635b3e
rustc: Improve errors on private static methods

This gives a better NOTE error message when a privacy error is encountered with
a static method. Previously no note was emitted (due to lack of support), but
now a note is emitted indicating that the struct/enum itself is private.

Closes #13641
src/librustc/middle/privacy.rs
src/test/compile-fail/issue-13641.rs [new file with mode: 0644]