Address unused tuple struct fields in rustdoc
This commit is contained in:
parent
9f15a889f0
commit
765a713dff
@ -1821,11 +1821,8 @@ fn maybe_expand_private_type_alias<'tcx>(
|
|||||||
}
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
});
|
});
|
||||||
if let Some(ct) = const_ {
|
if let Some(_) = const_ {
|
||||||
args.insert(
|
args.insert(param.def_id.to_def_id(), SubstParam::Constant);
|
||||||
param.def_id.to_def_id(),
|
|
||||||
SubstParam::Constant(clean_const(ct, cx)),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
// FIXME(const_generics_defaults)
|
// FIXME(const_generics_defaults)
|
||||||
indices.consts += 1;
|
indices.consts += 1;
|
||||||
|
@ -2546,7 +2546,7 @@ pub(crate) enum TypeBindingKind {
|
|||||||
pub(crate) enum SubstParam {
|
pub(crate) enum SubstParam {
|
||||||
Type(Type),
|
Type(Type),
|
||||||
Lifetime(Lifetime),
|
Lifetime(Lifetime),
|
||||||
Constant(Constant),
|
Constant,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SubstParam {
|
impl SubstParam {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user