Skip to content

Commit 057cf0f

Browse files
committed
Update rustdoc
1 parent 47732a4 commit 057cf0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ pub struct Arguments {
21592159
pub values: Vec<Argument>,
21602160
}
21612161

2162-
impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], &'a [Spanned<ast::Name>]) {
2162+
impl<'a> Clean<Arguments> for (&'a [hir::Ty], &'a [Spanned<ast::Name>]) {
21632163
fn clean(&self, cx: &DocContext) -> Arguments {
21642164
Arguments {
21652165
values: self.0.iter().enumerate().map(|(i, ty)| {
@@ -2177,7 +2177,7 @@ impl<'a> Clean<Arguments> for (&'a [P<hir::Ty>], &'a [Spanned<ast::Name>]) {
21772177
}
21782178
}
21792179

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

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

21952195
impl<'a, A: Copy> Clean<FnDecl> for (&'a hir::FnDecl, A)
2196-
where (&'a [P<hir::Ty>], A): Clean<Arguments>
2196+
where (&'a [hir::Ty], A): Clean<Arguments>
21972197
{
21982198
fn clean(&self, cx: &DocContext) -> FnDecl {
21992199
FnDecl {
@@ -2929,7 +2929,7 @@ impl Clean<Type> for hir::Ty {
29292929
}
29302930
});
29312931
if let Some(ty) = type_.cloned() {
2932-
ty_substs.insert(ty_param_def, ty.into_inner().clean(cx));
2932+
ty_substs.insert(ty_param_def, ty.clean(cx));
29332933
} else if let Some(default) = default.clone() {
29342934
ty_substs.insert(ty_param_def,
29352935
default.into_inner().clean(cx));

0 commit comments

Comments
 (0)