about summary refs log tree commit diff
path: root/src/libstd/prelude
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-201/+0
2020-06-19Update the doc for std::prelude, removing the "technical part" sectionAlexis Bourget-16/+0
2020-04-25Bump bootstrap compilerMark Rousskov-1/+0
2020-04-15Deprecate the asm! macroAmanieu d'Antras-0/+1
2020-03-26Rename asm! to llvm_asm!Amanieu d'Antras-2/+2
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-10builtin_macros: Add attribute macro `#[cfg_accessible(path)]`Vadim Petrochenkov-0/+9
2019-11-29Format libstd with rustfmtDavid Tolnay-46/+12
This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd *that are not involved in any currently open PR* to minimize merge conflicts. THe list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in outstanding_files, the relevant commands were: $ find src/libstd -name '*.rs' \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ rg libstd outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libstd. To confirm no funny business: $ git checkout $THIS_COMMIT^ $ git show --pretty= --name-only $THIS_COMMIT \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ git diff $THIS_COMMIT # there should be no difference
2019-08-15Remove `__rust_unstable_column`Vadim Petrochenkov-1/+0
2019-08-14Handle cfg(bootstrap) throughoutMark Rousskov-18/+0
2019-07-31Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]`Vadim Petrochenkov-2/+0
2019-07-26Introduce built-in macros through libcoreVadim Petrochenkov-1/+62
2019-07-05Replace SliceConcatExt trait with inherent methods and SliceConcat helper traitSimon Sapin-6/+0
Before this change `SliceConcatExt` was an unstable extension trait with stable methods. It was in the libstd prelude, so that its methods could be used on the stable channel. This replaces it with inherent methods, which can be used without any addition to the prelude. Since the methods are stable and very generic (with for example a return type that depends on the types of parameters), an helper trait is still needed. But now that trait does not need to be in scope for the methods to be used. Removing this depedency on the libstd prelude allows the methods to be used in `#![no_std]` crate that use liballoc, which does not have its own implicitly-imported prelude.
2019-02-28libstd => 2018Taiki Endo-16/+16
2019-02-13Convert old doc links to current editionLzu Tao-4/+4
Use footnote style to bypass the tidy check
2019-01-17Document Unpin in std::prelude documentationKonrad Borowski-2/+3
2018-12-26Add Unpin to std prelude, not just coreTaylor Cramer-1/+1
2018-12-25Remove licensesMark Rousskov-20/+0
2018-07-07Reformat std prelude source to show it is the sum of core and alloc preludesSimon Sapin-16/+42
2018-03-30Revert "Add TryFrom and TryInto to the prelude"Simon Sapin-2/+0
This reverts commit 09008cc23ff6395c2c928f3690e07d7389d08ebc.
2018-03-26Add TryFrom and TryInto to the preludeSimon Sapin-0/+2
2018-01-15Reexport -> re-export in prose and documentation commentsCarol (Nichols || Goulding)-4/+4
2017-08-27Move unused-extern-crate to late passTatsuyuki Ishi-0/+1
2017-06-23Removed as many "```ignore" as possible.kennytm-2/+3
Replaced by adding extra imports, adding hidden code (`# ...`), modifying examples to be runnable (sorry Homura), specifying non-Rust code, and converting to should_panic, no_run, or compile_fail. Remaining "```ignore"s received an explanation why they are being ignored.
2017-06-15Update older URLs pointing to the first edition of the BookWonwoo Choi-4/+4
`compiler-plugins.html` is moved into the Unstable Book. Explanation is slightly modified to match the change.
2017-04-06Fix Markdown issues in the docsOliver Middleton-6/+6
* Since the switch to pulldown-cmark reference links need a blank line before the URLs. * Reference link references are not case sensitive. * Doc comments need to be indented uniformly otherwise rustdoc gets confused.
2017-03-13Remove function invokation parens from documentation links.Corey Farwell-4/+4
This was never established as a convention we should follow in the 'More API Documentation Conventions' RFC: https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
2016-03-04End stdlib module summaries with a full stop.Steve Klabnik-1/+1
Fixes #9447
2016-02-10mod.rs: fix typoScott Whittaker-1/+1
"destructors" was misspelled.
2016-02-09mod.rs: fix typoScott Whittaker-1/+1
"particularly" was misspelled.
2016-02-08Fixing typo in prelude documentationKenneth Koski-1/+1
2015-12-17doc: fix typoTshepang Lekhonkhobe-1/+1
2015-11-12Fixup #29785Manish Goregaokar-1/+1
2015-11-11Clean up the prelude docsSteve Klabnik-96/+115
This mostly brings them in line with existing linking convention, but also has some minor re-wording. The text at the top has been re-focused, by starting out with what the prelude does, rather than starting from injecting std. Also, it now mentions that other preludes exist. Part of https://github.com/rust-lang/rust/issues/29369
2015-10-14Fix the link to `Default` trait in the prelude docsGleb Kozyrev-1/+1
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-1/+1
2015-09-04Fix typo in prelude docsMurarth-2/+2
2015-07-30doc: prelude nitsTshepang Lekhonkhobe-3/+3
2015-07-13Address feedbackBrian Anderson-2/+2
2015-07-13std: Refining crate docsBrian Anderson-7/+96
Yet another attempt to make the prose on the std crate page clearer and more informative. This does a lot of things: tightens up the opening, adds useful links (including a link to the search bar), offers guidance on how to use the docs, and expands the prelude docs as a useful newbie entrypoint.
2015-05-13Rollup merge of #25224 - brson:stddoc, r=steveklabnikSteve Klabnik-2/+2
Attempted to organize them in a way more relevant to what newbies would be interested in hearing. I am not satisfied by this at all, but by virtue of deleting old links alone I think it is an improvement. r? @steveklabnik
2015-05-08std: Update crate docsBrian Anderson-2/+2
Attempted to organize them in a way more relevant to what newbies would be interested in hearing.
2015-05-09Squeeze the last bits of `task`s in documentation in favor of `thread`Barosl Lee-1/+1
An automated script was run against the `.rs` and `.md` files, subsituting every occurrence of `task` with `thread`. In the `.rs` files, only the texts in the comment blocks were affected.
2015-04-17std: Add Default/IntoIterator/ToOwned to the preludeAlex Crichton-4/+6
This is an implementation of [RFC 1030][rfc] which adds these traits to the prelude and additionally removes all inherent `into_iter` methods on collections in favor of the trait implementation (which is now accessible by default). [rfc]: https://github.com/rust-lang/rfcs/pull/1030 This is technically a breaking change due to the prelude additions and removal of inherent methods, but it is expected that essentially no code breaks in practice. [breaking-change] Closes #24538
2015-04-14std: Remove AsSlice/Str from the preludeAlex Crichton-3/+0
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-5/+4
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-31Stabilize std::numAaron Turon-3/+0
This commit stabilizes the `std::num` module: * The `Int` and `Float` traits are deprecated in favor of (1) the newly-added inherent methods and (2) the generic traits available in rust-lang/num. * The `Zero` and `One` traits are reintroduced in `std::num`, which together with various other traits allow you to recover the most common forms of generic programming. * The `FromStrRadix` trait, and associated free function, is deprecated in favor of inherent implementations. * A wide range of methods and constants for both integers and floating point numbers are now `#[stable]`, having been adjusted for integer guidelines. * `is_positive` and `is_negative` are renamed to `is_sign_positive` and `is_sign_negative`, in order to address #22985 * The `Wrapping` type is moved to `std::num` and stabilized; `WrappingOps` is deprecated in favor of inherent methods on the integer types, and direct implementation of operations on `Wrapping<X>` for each concrete integer type `X`. Closes #22985 Closes #21069 [breaking-change]
2015-03-28Remove IteratorExtSteven Fackler-1/+1
All methods are inlined into Iterator with `Self: Sized` bounds to make sure Iterator is still object safe. [breaking-change]
2015-03-23Add generic conversion traitsAaron Turon-0/+4
This commit: * Introduces `std::convert`, providing an implementation of RFC 529. * Deprecates the `AsPath`, `AsOsStr`, and `IntoBytes` traits, all in favor of the corresponding generic conversion traits. Consequently, various IO APIs now take `AsRef<Path>` rather than `AsPath`, and so on. Since the types provided by `std` implement both traits, this should cause relatively little breakage. * Deprecates many `from_foo` constructors in favor of `from`. * Changes `PathBuf::new` to take no argument (creating an empty buffer, as per convention). The previous behavior is now available as `PathBuf::from`. * De-stabilizes `IntoCow`. It's not clear whether we need this separate trait. Closes #22751 Closes #14433 [breaking-change]
2015-03-20std: Remove old_io/old_path from the preludeAlex Crichton-8/+1
This commit removes the reexports of `old_io` traits as well as `old_path` types and traits from the prelude. This functionality is now all deprecated and needs to be removed to make way for other functionality like `Seek` in the `std::io` module (currently reexported as `NewSeek` in the io prelude). Closes #23377 Closes #23378
2015-03-18Register new snapshotsAlex Crichton-14/+0