librustc: Consolidate the attribute handling for tagging function arguments and returns.