Commit 56290a0
committed
std: Stabilize the prelude module
This commit is an implementation of [RFC 503][rfc] which is a stabilization
story for the prelude. Most of the RFC was directly applied, removing reexports.
Some reexports are kept around, however:
* `range` remains until range syntax has landed to reduce churn.
* `Path` and `GenericPath` remain until path reform lands. This is done to
prevent many imports of `GenericPath` which will soon be removed.
* All `io` traits remain until I/O reform lands so imports can be rewritten all
at once to `std::io::prelude::*`.
This is a breaking change because many prelude reexports have been removed, and
the RFC can be consulted for the exact list of removed reexports, as well as to
find the locations of where to import them.
[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
[breaking-change]
Closes #200681 parent 71b46b1 commit 56290a0
File tree
314 files changed
+1648
-1198
lines changed- src
- compiletest
- doc
- libcollections
- btree
- libcoretest
- num
- libcore
- libgraphviz
- librand
- distributions
- libregex
- librustc_borrowck
- borrowck/gather_loans
- librustc_driver
- librustc_llvm
- librustc_resolve
- librustc_trans
- back
- save
- trans
- librustc
- lint
- metadata
- middle
- cfg
- infer/region_inference
- session
- librustdoc
- html
- libstd
- collections/hash
- comm
- io
- net
- num
- path
- prelude
- rand
- rt
- sync
- sys
- common
- unix
- windows
- thread_local
- libsyntax
- ext
- parse
- lexer
- util
- libtest
- libtime
- test
- auxiliary
- bench
- compile-fail
- pretty
- run-pass
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
314 files changed
+1648
-1198
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
| |||
0 commit comments