diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-24 10:11:23 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-24 10:12:05 -0400 |
| commit | 28f69805de661551d3bba35bd2c6df96777e2df2 (patch) | |
| tree | b253ffe95975dce9b27591cc02d645b0cf17591c /src/librustdoc/clean/inline.rs | |
| parent | cfb8419900c1511b09320d70105128ce13de6e71 (diff) | |
| download | rust-28f69805de661551d3bba35bd2c6df96777e2df2.tar.gz rust-28f69805de661551d3bba35bd2c6df96777e2df2.zip | |
Fix tools
Diffstat (limited to 'src/librustdoc/clean/inline.rs')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 701bf618096..b7d6b3dda72 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -373,7 +373,7 @@ pub(crate) fn build_impls( let tcx = cx.tcx; // for each implementation of an item represented by `did`, build the clean::Item for that impl - for &did in tcx.inherent_impls(did).into_iter().flatten() { + for &did in tcx.inherent_impls(did).into_iter() { cx.with_param_env(did, |cx| { build_impl(cx, did, attrs, ret); }); @@ -388,7 +388,7 @@ pub(crate) fn build_impls( if tcx.has_attr(did, sym::rustc_has_incoherent_inherent_impls) { let type_ = if tcx.is_trait(did) { SimplifiedType::Trait(did) } else { SimplifiedType::Adt(did) }; - for &did in tcx.incoherent_impls(type_).into_iter().flatten() { + for &did in tcx.incoherent_impls(type_).into_iter() { cx.with_param_env(did, |cx| { build_impl(cx, did, attrs, ret); }); |
