about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-06-01 12:57:42 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-06-01 12:57:42 +0530
commit86319f7f81d89ad57e98c36ae6b2e53be83ad721 (patch)
treeec448e6d90eaf788ba8094da899b8dfb9583e1b1 /src/rustllvm/RustWrapper.cpp
parente214c3e2da41a2f561bdff13c01a21278a65403b (diff)
parent06c9e0f5f80d2a2bad9e7b90af73b8dc89f756c6 (diff)
downloadrust-86319f7f81d89ad57e98c36ae6b2e53be83ad721.tar.gz
rust-86319f7f81d89ad57e98c36ae6b2e53be83ad721.zip
Rollup merge of #33973 - zackmdavis:stable_features_warning_notes_version_stabilized, r=brson
stable features lint warning mentions version stabilized

To accomplish this, we alter the checks in `rustc::middle::stability` to
use the `StabilityLevel` defined in `syntax::attr` (which includes the
version in which the feature was stabilized) rather than the local
`StabilityLevel` in the same module, and make the
`declared_stable_lang_features` field of
`syntax::feature_gate::Features` hold a Vec of feature-name, span
tuples (in analogy to the `declared_lib_features` field) rather than
just spans.

Fixes #33394.

![stable_features_version_lint_before_and_after](https://cloud.githubusercontent.com/assets/1076988/15659237/5d952a3a-267c-11e6-9181-c9e612eefd7d.png)

r? @brson (tagging Brian because he [wrote](https://github.com/rust-lang/rust/pull/21958) the lint)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions