Repository navigation
libs: clean up enums now that namespacing has arrived #19253
Copy link
Copy link
Closed
Description
Activity
Does someone want to make a list of the various enums this should apply to, so we can triage?
Here's a list of enums whose variants are re-exported, by file:
- src/libstd/collections/hash/map.rs: Entry
- src/libstd/collections/hash/table.rs: BucketState
- src/libstd/dynamic_lib.rs: Rtld
- src/libstd/io/mod.rs: SeekStyle, FileMode, FileAccess, FileType, IoErrorKind
- src/libstd/io/net/addrinfo.rs: SocketType, Flag, Protocol
- src/libstd/io/net/ip.rs: IpAddr
- src/libstd/io/process.rs: StdioContainer, ProcessExit
- src/libstd/num/strconv.rs: ExponentFormat, SignificantDigits, SignFormat
- src/libstd/os.rs: MemoryMapKind, MapOption, MapError
- src/libstd/path/windows.rs: PathPrefix
- src/libstd/sys/common/net.rs: SocketStatus, InAddr
- src/libstd/sys/unix/timer.rs: Req
- src/libstd/sys/windows/timer.rs: Req
- src/libcore/cmp.rs Ordering
- src/libcore/result.rs: Result
- src/libcore/option.rs: Option
- src/libcollections/str.rs: MaybeOwned
I hope I haven't missed any.
Apart from Result, Option and (maybe) Ordering, I don't think any of these need to have their variants re-exported.We don't really need to reexport Result's, Option's and Ordering's either since everyone will be pulling them from the prelude anyway.
- added a commit that references this issue
on Nov 26, 2014 - added a commit that references this issue
on Nov 27, 2014 @sfackler I'll open a PR that gets rid of those reexports. If anyone has other suggestions for ones to get rid of, I can do them as well
53 remaining items
- added a commit that references this issue
on Dec 25, 2014 - added a commit that references this issue
on Dec 30, 2014 - added a commit that references this issue
on Dec 31, 2014 - added a commit that references this issue
on Jan 2, 2015 - added a commit that references this issue
on Jan 3, 2015 I think this is done now, please let me know if there's anything left oustanding.
Metadata
Metadata
Assignees
Labels
No labels
Now that enums are namespaced, there's a fair amount of cleanup work to do in
libstd.In particular:
A lot of this work will happen naturally during API stabilization, but it's also something that can tackled in parallel to help speed things up.