feat: add FunctionDef::set_return_visibility
#5941
Merged
FunctionDef::set_return_visibility
#5941