Skip to content

Commit

Permalink
Rollup merge of rust-lang#118384 - shepmaster:unused-tuple-struct-fie…
Browse files Browse the repository at this point in the history
…ld-cleanup-rustdoc, r=GuillaumeGomez

Address unused tuple struct fields in rustdoc
  • Loading branch information
GuillaumeGomez authored Nov 27, 2023
2 parents 73070b1 + 765a713 commit bec9f90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1821,11 +1821,8 @@ fn maybe_expand_private_type_alias<'tcx>(
}
_ => None,
});
if let Some(ct) = const_ {
args.insert(
param.def_id.to_def_id(),
SubstParam::Constant(clean_const(ct, cx)),
);
if let Some(_) = const_ {
args.insert(param.def_id.to_def_id(), SubstParam::Constant);
}
// FIXME(const_generics_defaults)
indices.consts += 1;
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2546,7 +2546,7 @@ pub(crate) enum TypeBindingKind {
pub(crate) enum SubstParam {
Type(Type),
Lifetime(Lifetime),
Constant(Constant),
Constant,
}

impl SubstParam {
Expand Down

0 comments on commit bec9f90

Please sign in to comment.