You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The warning itself could be resolved by stmt_expr_attributes (once it is stable) by marking the inner unsafe{} as OK to be unneeded. (If we don't stabilize those, though, we may want to consider whether applying the unused_unsafe warning to unsafe{} generated by macros makes sense.
In any case, we should get an indication of where the macro expansion causing the error is occurring (right now only the macro location is printed, not the invocation location).
Tested with rustc 1.9.0-nightly (600dc3552 2016-04-04)
The warning itself could be resolved by
stmt_expr_attributes
(once it is stable) by marking the innerunsafe{}
as OK to be unneeded. (If we don't stabilize those, though, we may want to consider whether applying theunused_unsafe
warning tounsafe{}
generated by macros makes sense.In any case, we should get an indication of where the macro expansion causing the error is occurring (right now only the macro location is printed, not the invocation location).
Tested with
rustc 1.9.0-nightly (600dc3552 2016-04-04)
Example:
Output:
Expected: some complaint about line 9 (invocation of
another_unsafe!
)The text was updated successfully, but these errors were encountered: