about summary refs log tree commit diff
path: root/library/std/src/prelude
AgeCommit message (Collapse)AuthorLines
2021-03-10Rollup merge of #82217 - m-ou-se:edition-prelude, r=nikomatsakisDylan DPC-1/+35
Edition-specific preludes This changes `{std,core}::prelude` to export edition-specific preludes under `rust_2015`, `rust_2018` and `rust_2021`. (As suggested in https://github.com/rust-lang/rust/issues/51418#issuecomment-395630382.) For now they all just re-export `v1::*`, but this allows us to add things to the 2021edition prelude soon. This also changes the compiler to make the automatically injected prelude import dependent on the selected edition. cc `@rust-lang/libs` `@djc`
2021-03-06Implement built-in attribute macro `#[cfg_eval]`Vadim Petrochenkov-0/+9
2021-02-25Use intra-doc links.Mara-4/+4
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2021-02-25Add {core,std}::prelude::{rust_2015,rust_2018,rust_2021}.Mara Bos-0/+34
rust_2015 and rust_2018 are just re-exports of v1. rust_2021 is a module that for now just re-exports everything from v1, such that we can add more things later.
2021-02-07expand/resolve: Turn `#[derive]` into a regular macro attributeVadim Petrochenkov-0/+5
2021-01-21Make documentation of which items the prelude exports more readably.Frank Steffahn-33/+33
2021-01-21Rollup merge of #80172 - camelid:prelude-docs-consistent-punct, r=steveklabnikYuki Okushi-14/+14
Use consistent punctuation for 'Prelude contents' docs
2021-01-06Style nit: replace `for_each` & `return` with `for` & `continue`Daniel Henry-Mantilla-4/+4
Co-Authored-By: Joshua Nelson <jyn514@gmail.com>
2021-01-05Use heading for `std::prelude` and not `io::prelude`Camelid-1/+1
The heading style for `std::prelude` is to be consistent with the headings for `std` and `core`: `# The Rust Standard Library` and `# The Rust Core Library`, respectively.
2021-01-05Use lowercase for prelude itemsCamelid-12/+12
2020-12-18Use consistent punctuation for 'Prelude contents' docsCamelid-14/+14
2020-12-17Edit formatting in Rust Prelude docspierwill-13/+12
Use consistent punctuation and capitalization in the list of things re-exported in the prelude. Also adds a (possibly missing) word.
2020-09-02Fix incorrect link in preludeJoshua Nelson-1/+1
2020-09-02Convert many files to intra-doc linksJoshua Nelson-1/+1
- Use intra-doc links for `std::io` in `std::fs` - Use intra-doc links for File::read in unix/ext/fs.rs - Remove explicit intra-doc links for `true` in `net/addr.rs` - Use intra-doc links in alloc/src/sync.rs - Use intra-doc links in src/ascii.rs - Switch to intra-doc links in alloc/rc.rs - Use intra-doc links in core/pin.rs - Use intra-doc links in std/prelude - Use shorter links in `std/fs.rs` `io` is already in scope.
2020-08-11Move the std::vec link back to a path-based link to make it compile with ↵Alexis Bourget-1/+1
--stage 0
2020-08-10Move to doc links inside the preludeAlexis Bourget-59/+26
2020-07-27mv std libs to library/mark-0/+201