Rollup merge of #124943 - lcnr:generic-args-ref, r=compiler-errors
always use `GenericArgsRef` r? ```@compiler-errors```
This commit is contained in:
commit
30bd6cb726
9 changed files with 19 additions and 15 deletions
|
@ -2331,7 +2331,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
pub fn mk_args_from_iter<I, T>(self, iter: I) -> T::Output
|
||||
where
|
||||
I: Iterator<Item = T>,
|
||||
T: CollectAndApply<GenericArg<'tcx>, &'tcx List<GenericArg<'tcx>>>,
|
||||
T: CollectAndApply<GenericArg<'tcx>, ty::GenericArgsRef<'tcx>>,
|
||||
{
|
||||
T::collect_and_apply(iter, |xs| self.mk_args(xs))
|
||||
}
|
||||
|
|
|
@ -977,7 +977,7 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
|
|||
fn pretty_print_opaque_impl_type(
|
||||
&mut self,
|
||||
def_id: DefId,
|
||||
args: &'tcx ty::List<ty::GenericArg<'tcx>>,
|
||||
args: ty::GenericArgsRef<'tcx>,
|
||||
) -> Result<(), PrintError> {
|
||||
let tcx = self.tcx();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue