rustdoc: Render for<'_> lifetimes in trait objects

This commit is contained in:
Justus K 2021-05-18 10:06:24 +02:00
parent e0162a8a56
commit 1f65f56461
No known key found for this signature in database
GPG key ID: 8C62FE98A62FC462
6 changed files with 61 additions and 29 deletions

View file

@ -378,7 +378,7 @@ impl FromWithTcx<clean::Type> for Type {
id: from_def_id(did.into()),
args: path.segments.last().map(|args| Box::new(args.clone().args.into_tcx(tcx))),
param_names: param_names
.map(|v| v.into_iter().map(|x| x.into_tcx(tcx)).collect())
.map(|(v, _)| v.into_iter().map(|x| x.into_tcx(tcx)).collect())
.unwrap_or_default(),
},
Generic(s) => Type::Generic(s.to_string()),