Open KisaragiEffective opened 11 months ago
@rustbot claim
It's a generic case more than std::ptr::null{_mut}
,
but is there any convenient way to get callee
's fn_decl and check whether callee
is a generic function?
Or check whether callee
is instanced in mir
@rustbot label +E-help-wanted
Summary
unnecessary_cast
does not insert actual type tostd::ptr::null{_mut}
's turbofish.Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Version
Additional Labels
@rustbot labels +I-suggestion-causes-error