Description
For example Iterator::map
should have a Self: Sized
bound, but we're a little too aggressive about pruning out the Sized
bounds.
For comparison core::iter::Iterator::map
does indeed have the bound.
For example Iterator::map
should have a Self: Sized
bound, but we're a little too aggressive about pruning out the Sized
bounds.
For comparison core::iter::Iterator::map
does indeed have the bound.
Activity
apasel422 commentedon Oct 24, 2015
This also applies to
Sized
bounds on traits.crumblingstatue commentedon Oct 22, 2016
This prompted a question on IRC about whether
Clone
requiresSized
, because theSized
bound is not visible in the libstd documentation. It is visible in the libcore docs though.where T: Sized
#4947712 remaining items
jyn514 commentedon Mar 30, 2021
@GuillaumeGomez #78181 did not fix this - it now shows
impl !Sized for dyn Trait
, which is nice, but it doesn't showSelf: Sized
bounds on traits. For traits it does matter because the default is?Sized
.Sized
bound on traits isn't shown #82581jyn514 commentedon Mar 30, 2021
@guswynn I would start by finding out why this is different between local crates and cross-crate re-exports. I expect
impl Clean<Item> for hir::TraitItem<'_>
is behaving differently fromimpl Clean<Type> for (ty::TraitRef<'_>, &[TypeBinding])
.tmandry commentedon Apr 14, 2022
Ah, I also hit this today when looking at
Clone
. Kudos to whoever can figure this one out :)fmease commentedon Oct 18, 2022
@rustbot claim
x.py build
no longer placesrustc
andrustdoc
binaries intostage2/
with configprofile = "tools"
#103206Self: Sized
bounds #103254Rollup merge of rust-lang#103254 - fmease:fix-24183, r=GuillaumeGomez
Rollup merge of rust-lang#103254 - fmease:fix-24183, r=GuillaumeGomez
Self
is maybe-sized by default rust-lang/reference#1285struct
documentation should includeSized
in the listed auto trait implementations #126421