about summary refs log tree commit diff
path: root/src/libcore/ops/index.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-172/+0
2020-04-25Bump bootstrap compilerMark Rousskov-2/+2
2020-03-23#[track_caller] on core::ops::{Index, IndexMut}.Adam Perry-0/+2
2019-11-26Format libcore with rustfmtDavid Tolnay-10/+10
This commit applies rustfmt with default settings to files in src/libcore *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/libcore -name '*.rs' | xargs rustfmt --edition=2018 $ rg libcore outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libcore.
2019-07-01Remove needless lifetimesJeremy Stucki-2/+2
2019-03-18Replaced self-reflective explicit types with clearer `Self` or `Self::…` ↵Vincent Esche-3/+3
in stdlib docs
2019-01-19Make `str` indexing generic on `SliceIndex`.Alexis Hunt-15/+0
2019-01-05Show suggestion to use .char().nth() and link to The Book on unimplemented ↵folex-0/+30
Index trait
2018-12-25Remove licensesMark Rousskov-10/+0
2018-06-19Add message to `rustc_on_unimplemented` attributes in coreEsteban Küber-2/+8
2018-04-21add more aliasesGuillaume Gomez-0/+6
2017-08-12std::ops docs: incorporated changes suggested in reviewlukaramu-3/+1
* fixed link typos and copy-paster errors * rewrote Fn* explanations * `RHS = Self` -> `RHS` is `Self` (added that to all applicable places as well) * fixed up some links * s/MutDeref/DerefMut * removed remaining superfluous `fn main()`s * fixed some minor phrasings and factual errors and inaccuracies std::ops docs: Fix phrasing and factual errors/inaccuracies
2017-08-07Revise `Index` and `IndexMut` docs.lukaramu-26/+23
Part of #29365. * Shortened summary sentences, removing "stuttering" * Small copyediting * Changed method summary sentences to be in 3rd person singular * Removed extraneous explicit `fn main()` in example for `IndexMut`
2017-06-09Move Index to module.Clar Charr-0/+158