diff options
| author | Michael Goulet <michael@errs.io> | 2023-11-27 19:06:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 19:06:49 -0500 |
| commit | 2aca7247a7c63d43510ac136c5e26c8ddfd40180 (patch) | |
| tree | 5fc9b9c573cad226f388cefb957c03983923675d | |
| parent | fa636d04813d3c4b1f49277f6369652611824102 (diff) | |
| parent | 765a713dff0c4778b4f13f88d597fc351f903030 (diff) | |
| download | rust-2aca7247a7c63d43510ac136c5e26c8ddfd40180.tar.gz rust-2aca7247a7c63d43510ac136c5e26c8ddfd40180.zip | |
Rollup merge of #118384 - shepmaster:unused-tuple-struct-field-cleanup-rustdoc, r=GuillaumeGomez
Address unused tuple struct fields in rustdoc
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 7 | ||||
| -rw-r--r-- | src/librustdoc/clean/types.rs | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index dc9098d3ade..fe1f43835ef 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -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; diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index f079d01bd84..7a5cf803137 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -2546,7 +2546,7 @@ pub(crate) enum TypeBindingKind { pub(crate) enum SubstParam { Type(Type), Lifetime(Lifetime), - Constant(Constant), + Constant, } impl SubstParam { |
