Skip to content

Commit bb7c782

Browse files
committed
Update rustdoc
1 parent 864bbae commit bb7c782

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
@@ -264,7 +264,7 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
264264
});
265265
}
266266
ty::GenericParamDefKind::Type {..} => {
267-
types.push(P(self.ty_param_to_ty(param.clone())));
267+
types.push(self.ty_param_to_ty(param.clone()));
268268
}
269269
}
270270
}

src/librustdoc/clean/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ pub struct Arguments {
21282128
pub values: Vec<Argument>,
21292129
}
21302130

2131-
impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], &'a [Spanned<ast::Name>]) {
2131+
impl<'a> Clean<Arguments> for (&'a [hir::Ty], &'a [Spanned<ast::Name>]) {
21322132
fn clean(&self, cx: &DocContext) -> Arguments {
21332133
Arguments {
21342134
values: self.0.iter().enumerate().map(|(i, ty)| {
@@ -2146,7 +2146,7 @@ impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], &'a [Spanned<ast::Name>]) {
21462146
}
21472147
}
21482148

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

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

21642164
impl<'a, A: Copy> Clean<FnDecl> for (&'a hir::FnDecl, A)
2165-
where (&'a [P<hir::Ty>], A): Clean<Arguments>
2165+
where (&'a [hir::Ty], A): Clean<Arguments>
21662166
{
21672167
fn clean(&self, cx: &DocContext) -> FnDecl {
21682168
FnDecl {
@@ -2874,7 +2874,7 @@ impl Clean<Type> for hir::Ty {
28742874
Def::TyParam(cx.tcx.hir.local_def_id(ty_param.id));
28752875
if let Some(ty) = provided_params.types
28762876
.get(indices.types).cloned() {
2877-
ty_substs.insert(ty_param_def, ty.into_inner().clean(cx));
2877+
ty_substs.insert(ty_param_def, ty.clean(cx));
28782878
} else if let Some(default) = ty_param.default.clone() {
28792879
ty_substs.insert(ty_param_def,
28802880
default.into_inner().clean(cx));

0 commit comments

Comments
 (0)