This is the tracking issue for the no_mangle_generic_items future-compatibility warning and other related errors. The goal of this page is to describe why this change was made and how you can fix code that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made. For more information on the policy around future-compatibility warnings, see our breaking change policy guidelines.
What is the warning for?
The warning triggers on a no_mangle attribute on a generic item:
#[no_mangle]
fn no_mangle_generic<T>() {}
This was accidentally accepted, but never made any sense.
Why was this change made?
The attribute makes no sense and has no effect on generic items.
Recommendations
Remove the attribute.
When will this warning become a hard error?
No concrete timeline yet.
Steps
Implementation history
This is the tracking issue for the
no_mangle_generic_itemsfuture-compatibility warning and other related errors. The goal of this page is to describe why this change was made and how you can fix code that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made. For more information on the policy around future-compatibility warnings, see our breaking change policy guidelines.What is the warning for?
The warning triggers on a no_mangle attribute on a generic item:
This was accidentally accepted, but never made any sense.
Why was this change made?
The attribute makes no sense and has no effect on generic items.
Recommendations
Remove the attribute.
When will this warning become a hard error?
No concrete timeline yet.
Steps
Implementation history