Open
Description
Due to the fact that the compiler has to monomorphize the function, it's advisable to create a wrapper function that does the .as_ref()
/.as_mut()
/.into()
calls and then calls the inner function. That way the monomorphization pass only has to generate one call per instantiated method.
This can be done by first checking methods for generics and if any are detected call the ComplexityVisitor with a severely reduced threshold. We probably need to noodle around a bit to find the correct number here.
Metadata
Metadata
Assignees
Labels
No labels