]> git.lizzy.rs Git - rust.git/commit
Check stability of struct fields.
authorHuon Wilson <dbau.pp+github@gmail.com>
Wed, 25 Feb 2015 11:34:21 +0000 (22:34 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Thu, 26 Feb 2015 05:26:34 +0000 (16:26 +1100)
commit19cb8f32d894719ece5b2308dabab45be1b94fcf
tree3d564077787097f9d89543f6513147f067be0d45
parent4db0b32467535d718d6474de7ae8d1007d900818
Check stability of struct fields.

We were recording stability attributes applied to fields in the
compiler, and even annotating it in the libs, but the compiler didn't
actually do the checks to give errors/warnings in user crates.
src/librustc/lint/builtin.rs
src/librustc/middle/stability.rs
src/librustc/middle/ty.rs
src/libstd/old_io/mem.rs
src/test/auxiliary/lint_stability.rs
src/test/auxiliary/lint_stability_fields.rs [new file with mode: 0644]
src/test/compile-fail/lint-stability-fields.rs [new file with mode: 0644]
src/test/compile-fail/lint-stability.rs