about summary refs log tree commit diff
path: root/src/libsyntax_pos/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-29 10:22:14 +0000
committerbors <bors@rust-lang.org>2017-08-29 10:22:14 +0000
commitfaf477a8c232d0442d16a4025f49d3ae1519131e (patch)
tree018be9663dcc40e1bf396479eb06411e94b43e61 /src/libsyntax_pos/lib.rs
parent6f82dea299e7a8c4aa149196545917043f66af2f (diff)
parent8bb29465d0cba5216ba6e8ec34d5b379392f78aa (diff)
downloadrust-faf477a8c232d0442d16a4025f49d3ae1519131e.tar.gz
rust-faf477a8c232d0442d16a4025f49d3ae1519131e.zip
Auto merge of #44111 - zackmdavis:feature_attr_error_span, r=nikomatsakis
feature error span on attribute for fn_must_use, SIMD/align reprs, 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.)

![feature_attr_error_span](https://user-images.githubusercontent.com/1076988/29746531-fd700bfe-8a91-11e7-9c5b-6f5324083887.png)
Diffstat (limited to 'src/libsyntax_pos/lib.rs')
0 files changed, 0 insertions, 0 deletions