Closed
Description
#[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:
- libcollections/ (12) @huonw Audit #[derive]s in std for stability #22511 (comment)
- binary_heap.rs
- bit.rs
- btree/map.rs
- btree/set.rs
- dlist.rs
- string.rs
- vec_map.rs
- libcore/ (37) @huonw Audit #[derive]s in std for stability #22511 (comment)
- any.rs
- atomic.rs
- char.rs
- cmp.rs
- default.rs
- fmt/mod.rs
- fmt/rt/v1.rs
- num/mod.rs
- ops.rs
- option.rs
- result.rs
- slice.rs
- str/mod.rs
- libcore/iter.rs (18) @huonw Audit #[derive]s in std for stability #22511 (comment)
- libstd/ (10) @huonw Audit #[derive]s in std for stability #22511 (comment)
- collections/hash/map.rs
- collections/hash/set.rs
- sync/mpsc/mod.rs
- thread.rs
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.
Metadata
Metadata
Assignees
Labels
No labels