diff options
| author | bors <bors@rust-lang.org> | 2017-08-29 10:22:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-29 10:22:14 +0000 |
| commit | faf477a8c232d0442d16a4025f49d3ae1519131e (patch) | |
| tree | 018be9663dcc40e1bf396479eb06411e94b43e61 /src/libsyntax_pos/lib.rs | |
| parent | 6f82dea299e7a8c4aa149196545917043f66af2f (diff) | |
| parent | 8bb29465d0cba5216ba6e8ec34d5b379392f78aa (diff) | |
| download | rust-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.) 
Diffstat (limited to 'src/libsyntax_pos/lib.rs')
0 files changed, 0 insertions, 0 deletions
