about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-11-26 15:32:15 +0100
committerGitHub <noreply@github.com>2024-11-26 15:32:15 +0100
commit03f56d36aea9ef1f2e720e5103bcaf53b67fc293 (patch)
treefc0de3b8861658ecb0db276d35884c07d3e44d81 /src
parentaf6e2a588a29b572755f84151f0b78429196c11b (diff)
parent4301d0266d20d391e5b389e2b37bbe133e3f4e1c (diff)
downloadrust-03f56d36aea9ef1f2e720e5103bcaf53b67fc293.tar.gz
rust-03f56d36aea9ef1f2e720e5103bcaf53b67fc293.zip
Rollup merge of #133443 - fmease:rm-dead-eff-code-ii, r=compiler-errors
Remove dead code stemming from the old effects desugaring (II)

Follow-up to #132374.
r? project-const-traits
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/clean/mod.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 4bf299cb1fe..97a2c331012 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -2516,14 +2516,6 @@ fn clean_generic_args<'tcx>(
                     }
                     hir::GenericArg::Lifetime(_) => GenericArg::Lifetime(Lifetime::elided()),
                     hir::GenericArg::Type(ty) => GenericArg::Type(clean_ty(ty, cx)),
-                    // Checking for `is_desugared_from_effects` on the `AnonConst` not only accounts for the case
-                    // where the argument is `host` but for all possible cases (e.g., `true`, `false`).
-                    hir::GenericArg::Const(hir::ConstArg {
-                        is_desugared_from_effects: true,
-                        ..
-                    }) => {
-                        return None;
-                    }
                     hir::GenericArg::Const(ct) => GenericArg::Const(Box::new(clean_const(ct, cx))),
                     hir::GenericArg::Infer(_inf) => GenericArg::Infer,
                 })