-
Notifications
You must be signed in to change notification settings - Fork 13.3k
feature error span on attribute for fn_must_use, SIMD/align reprs, macro reëxport #44111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
(Delegating my compile-fail testing to Travis; I'll force push afterwards.) |
a2eea09
to
df1676a
Compare
update; one of the compile-fail tests still broken 😞 ; I may not have time to fix it for a few days |
df1676a
to
a7df17a
Compare
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.)
a7df17a
to
8bb2946
Compare
@bors r+ Nice! |
📌 Commit 8bb2946 has been approved by |
…akis 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.) 
☀️ Test successful - status-appveyor, status-travis |
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
, andplugin_registrar
features, for in those cases itmakes sense for the span to implicate the entire function, of which there is
little hope of using without the gated attribute.)