Skip to content

Commit e65947d

Browse files
committed
Update rustdoc
1 parent 174b761 commit e65947d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustdoc/clean/auto_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
263263
}));
264264
}
265265
ty::GenericParamDefKind::Type {..} => {
266-
args.push(hir::GenericArg::Type(P(self.ty_param_to_ty(param.clone()))));
266+
args.push(hir::GenericArg::Type(self.ty_param_to_ty(param.clone())));
267267
}
268268
}
269269
}

src/librustdoc/clean/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,7 @@ pub struct Arguments {
21502150
pub values: Vec<Argument>,
21512151
}
21522152

2153-
impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], &'a [Spanned<ast::Name>]) {
2153+
impl<'a> Clean<Arguments> for (&'a [hir::Ty], &'a [Spanned<ast::Name>]) {
21542154
fn clean(&self, cx: &DocContext) -> Arguments {
21552155
Arguments {
21562156
values: self.0.iter().enumerate().map(|(i, ty)| {
@@ -2168,7 +2168,7 @@ impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], &'a [Spanned<ast::Name>]) {
21682168
}
21692169
}
21702170

2171-
impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], hir::BodyId) {
2171+
impl<'a> Clean<Arguments> for (&'a [hir::Ty], hir::BodyId) {
21722172
fn clean(&self, cx: &DocContext) -> Arguments {
21732173
let body = cx.tcx.hir.body(self.1);
21742174

@@ -2184,7 +2184,7 @@ impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], hir::BodyId) {
21842184
}
21852185

21862186
impl<'a, A: Copy> Clean<FnDecl> for (&'a hir::FnDecl, A)
2187-
where (&'a [P<hir::Ty>], A): Clean<Arguments>
2187+
where (&'a [hir::Ty], A): Clean<Arguments>
21882188
{
21892189
fn clean(&self, cx: &DocContext) -> FnDecl {
21902190
FnDecl {
@@ -2926,7 +2926,7 @@ impl Clean<Type> for hir::Ty {
29262926
}
29272927
});
29282928
if let Some(ty) = type_.cloned() {
2929-
ty_substs.insert(ty_param_def, ty.into_inner().clean(cx));
2929+
ty_substs.insert(ty_param_def, ty.clean(cx));
29302930
} else if let Some(default) = default.clone() {
29312931
ty_substs.insert(ty_param_def,
29322932
default.into_inner().clean(cx));

0 commit comments

Comments
 (0)