replace `GenericArg` with `Term` where applicable r? types
compiler/
For more information about how rustc works, see the rustc dev guide.