]> git.lizzy.rs Git - rust.git/commit
check that #[used] is used only on statics
authorJorge Aparicio <jorge@japaric.io>
Mon, 30 Apr 2018 05:43:22 +0000 (07:43 +0200)
committerJorge Aparicio <jorge@japaric.io>
Mon, 30 Apr 2018 05:43:22 +0000 (07:43 +0200)
commitbd4ebf28bdf6eb898971b194f5cf773c88281251
treece741d8acbadef493b793ff5218f59ed0385a928
parentf76f6fbdea497c3cb536e33387f405cc74b99b76
check that #[used] is used only on statics
src/librustc/hir/check_attr.rs
src/test/compile-fail/used.rs [new file with mode: 0644]