about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2017-08-26 18:00:33 -0700
committerZack M. Davis <code@zackmdavis.net>2017-08-28 00:58:41 -0700
commit8bb29465d0cba5216ba6e8ec34d5b379392f78aa (patch)
tree835a273cf33ff0cb3a33fe039cc21ec0ea488d4c /src/rustllvm/RustWrapper.cpp
parente2668882406b68739c6ed33d420358d5d710e67b (diff)
downloadrust-8bb29465d0cba5216ba6e8ec34d5b379392f78aa.tar.gz
rust-8bb29465d0cba5216ba6e8ec34d5b379392f78aa.zip
feature error span on attr. for fn_must_use, SIMD/align, macro reëxport
There were several feature-gated attributes for which the
feature-not-available error spans would point to the item annotated with
the gated attribute, when it would make more sense for the span to point
to the attribute itself: if the attribute is removed, the
function/struct/&c. likely still makes sense and the program will
compile. (Note that we decline to make the analogous change for the
`main`, `start`, and `plugin_registrar` features, for in those cases it
makes sense for the span to implicate the entire function, of which
there is little hope of using without the gated attribute.)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions