#[derive(Foo)] currently just takes the stability of Foo, which may not be what we want for some types in std.
cc #22500
According to
$ git grep -C 5 '#\[derive' -- liballoc/ libarena/ libcollections/ libcore/ libstd/ libunicode/ | grep -C 5 '\[stable' | grep ':[0-9]\+:' | sed 's/:.*//' | sort | uniq
these files have a #[derive] attribute near a #[stable] one:
Replacing the sed ... with wc -l gives 77, i.e. there are approximately 77 #[derive]s to look at (nearly 25% of which are in core::iter, hence it being listed separately).
Comment below if you wish to handle some of these.
#[derive(Foo)]currently just takes the stability ofFoo, which may not be what we want for some types instd.cc #22500
According to
these files have a
#[derive]attribute near a#[stable]one:Replacing the
sed ...withwc -lgives 77, i.e. there are approximately 77#[derive]s to look at (nearly 25% of which are in core::iter, hence it being listed separately).Comment below if you wish to handle some of these.