Skip to content

Commit ad78fcf

Browse files
varkoryodaldevoid
andcommitted
Ignore const parameters when constructing type bounds in rustdoc
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
1 parent 59ebd1b commit ad78fcf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,9 +1706,7 @@ impl<'a, 'tcx> Clean<Generics> for (&'a ty::Generics,
17061706
}
17071707
Some(param.clean(cx))
17081708
}
1709-
ty::GenericParamDefKind::Const { .. } => {
1710-
unimplemented!() // FIXME(const_generics)
1711-
}
1709+
ty::GenericParamDefKind::Const { .. } => None,
17121710
}).collect::<Vec<GenericParamDef>>();
17131711

17141712
let mut where_predicates = preds.predicates.iter()

0 commit comments

Comments
 (0)