about summary refs log tree commit diff
path: root/src/libcore/convert.rs
AgeCommit message (Collapse)AuthorLines
2019-12-06Make `core::convert` a directory-module with `mod.rs`Simon Sapin-660/+0
2019-11-26Format libcore with rustfmtDavid Tolnay-17/+34
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-11-21Redefine `core::convert::Infallible` as `!`.Mazdak Farrokhzad-88/+7
2019-11-12Snap cfgsMark Rousskov-1/+0
2019-11-09Auto merge of #65879 - ohadravid:stabilize-re-rebalance-coherence, ↵bors-15/+12
r=nikomatsakis Stabilize the `re_rebalance_coherence` feature This PR stabilizes [RFC 2451](https://rust-lang.github.io/rfcs/2451-re-rebalancing-coherence.html), re-rebalance coherence. Changes include removing the attribute from tests which tested both the old and new behavior, moving the feature to `accepted` and removing the old logic. I'll also open a [PR](https://github.com/rust-lang-nursery/reference/pull/703) against the reference, updating it with the content of the RFC. Closes #63599 r? @nikomatsakis
2019-11-02Rename SuperiorThanZero -> GreaterThanZeroKevin Cox-4/+4
2019-10-31Strengthen documentation discouraging implementing `Into` over `From`Ohad Ravid-9/+7
2019-10-31Change `Into` docs to refer only to older versions of rustOhad Ravid-6/+5
2019-10-30Fix logic in example.Kevin Cox-1/+1
The example claims SuperiorThanZero and presumably Zero is not Superior than itself so it should not be allowed.
2019-09-25address rebase damageAriel Ben-Yehuda-1/+1
2019-09-24add a rustdoc comment to the reservation implNiko Matsakis-0/+5
2019-09-24nit: update error text to cite tracking issueNiko Matsakis-6/+2
2019-09-24add error message for caseAriel Ben-Yehuda-1/+6
2019-09-24reserve `impl<T> From<!> for T`Ariel Ben-Yehuda-0/+6
this is necessary for never-type stabilization
2019-09-16Make some adjustments to the documentation for `std::convert::identity`varkor-8/+9
Fixes some extra blank lines and makes some minor tweaks to the wording.
2019-08-29Add missing links on AsRef traitGuillaume Gomez-11/+13
2019-08-08Use associated_type_bounds where applicable - closes #61738Ilija Tovilo-2/+2
2019-08-02Fix typos in doc comments.Bruce Mitchener-1/+1
2019-07-17Add missing link to Infallible in TryFrom doclzutao-0/+1
2019-07-03Rollup merge of #62186 - GuillaumeGomez:add-missing-type-links-into, r=docsMark Rousskov-2/+3
Add missing type urls in Into trait r? @rust-lang/docs
2019-06-29Add missing type urls in Into traitGuillaume Gomez-2/+3
2019-06-29Add missing links for TryFrom docsGuillaume Gomez-9/+11
2019-06-20Fix Into trait linksGurwinder Singh-13/+13
2019-06-02Fix typo in AsRef docFabian Drinck-1/+1
2019-05-30Fixed some typos.OptimisticPeach-2/+2
2019-05-16Rollup merge of #59923 - czipperz:fix-convert-doc-links, r=steveklabnikMazdak Farrokhzad-20/+20
Fix convert module's documentation links r? @steveklabnik
2019-04-18libcore => 2018Taiki Endo-1/+1
2019-04-13Fix stray ` in previous changeChris Gregory-1/+1
2019-04-13Escape &str in convert docsChris Gregory-2/+3
2019-04-13Reorder blank lines in AsMut documentationChris Gregory-1/+2
2019-04-13Remove blank lines in AsRef documentationChris Gregory-2/+0
2019-04-13Remove broken links to self in Into documentationChris Gregory-4/+4
2019-04-13Remove dangling ` in Into documentationChris Gregory-1/+1
2019-04-12Fix convert module's documentation linksChris Gregory-11/+11
2019-04-06Rollup merge of #59707 - GuillaumeGomez:GuillaumeGomez-patch-1, r=CentrilMazdak Farrokhzad-0/+20
Add missing tryfrom example r? @rust-lang/docs
2019-04-05Add missing tryfrom exampleGuillaume Gomez-0/+20
2019-04-03be more direct about borrow requirenmentsAleksey Kladov-4/+6
2019-03-27Rollup merge of #59268 - estebank:from-string, r=QuietMisdreavusJosh Stone-0/+6
Add suggestion to use `&*var` when `&str: From<String>` is expected Fix #53879.
2019-03-25Formatting changes, including better wrapping and creating short summary lines.Christian-16/+21
2019-03-22review commentsEsteban Küber-1/+1
2019-03-22Add suggestion to use `&*var` when `&str: From<String>` is expectedEsteban Küber-0/+6
2019-03-21Wrapped a line such that it does not exceed 100 characters.Christian-1/+2
2019-03-21Changed inline code by using a single quote.Christian-20/+20
2019-03-21Added back a reference to "the book"Christian-2/+2
2019-03-21Fixed indentation of list items.Christian-4/+2
2019-03-21Reformatted the text such that the line length does not exceed 100.Christian-15/+22
2019-03-20Initial version of the documentation change of std::convert.Christian-85/+85
2019-03-12Remove stabilized feature gate in doctestSimon Sapin-1/+0
2019-02-27Incorporated review changes.Simon Heath-1/+3
2019-02-27Slowly figuring out how rustdoc actually works.Simon Heath-0/+3
Unfortunately trying to run doctests on my local machine is not really faster than letting Travis do it...