about summary refs log tree commit diff
path: root/src/libcore/convert.rs
AgeCommit message (Collapse)AuthorLines
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...
2019-02-27Fix some links in TryFrom docs.Simon Heath-7/+15
2019-02-27Fix a bunch of heckin' trailing whitespaceSimon Heath-12/+12
2019-02-27Started expanding docs for `TryFrom` and `TryInto`.Simon Heath-1/+43
The examples are still lacking for now, both for module docs and for methods/impl's.
2019-02-25Auto merge of #58302 - SimonSapin:tryfrom, r=alexcrichtonbors-5/+123
Stabilize TryFrom and TryInto with a convert::Infallible empty enum This is the plan proposed in https://github.com/rust-lang/rust/issues/33417#issuecomment-423073898
2019-02-17Review commentsSimon Sapin-2/+16
2019-02-14Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnikMazdak Farrokhzad-4/+1
Convert old first edition links to current edition one r? @steveklabnik
2019-02-13Add `impl From<!> for Infallible`Simon Sapin-0/+7
The reverse conversion unfortunately causes unexpected errors like: ``` error[E0277]: the trait bound `!: std::convert::From<()>` is not satisfied --> src/librustc_metadata/encoder.rs:105:9 | 105 | self.emit_usize(seq.len)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<()>` is not implemented for `!` | = help: the following implementations were found: <! as std::convert::From<std::convert::Infallible>> = note: the trait is implemented for `()`. Possibly this error has been caused by changes to Rust's type-inference algorithm (see: https://github.com/rust-lang/rust/issues/48950 for more info). Consider whether you meant to use the type `()` here instead. = note: required by `std::convert::From::from` ``` I don’t understand why this error happens. If I’m reading the code correctly the return types of `emit_usize` and of the method that contains line 105 are both `Result<(), !>`, so the expansion of the `?` operator should involve `!: From<!>`, not `From<()>`. Is this a type inference bug?
2019-02-13Stabilize TryFrom and TryIntoSimon Sapin-4/+8
2019-02-13Use convert::Infallible instead of never in the blanket TryFrom implSimon Sapin-1/+1
2019-02-13Add a convert::Infallible empty enum, make string::ParseError an aliasSimon Sapin-0/+93
2019-02-13Convert old doc links to current editionLzu Tao-4/+1
Use footnote style to bypass the tidy check
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-1/+1
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-10tests: doc commentsAlexander Regueiro-1/+1
2019-01-26Tiny improvement to docs for `core::convert`.Simon Heath-1/+4
This is not really significant, accept or reject as you wish. I just want to make sure I understand how the PR process works and I'm doing it right before doing a bigger one for #33417.
2019-01-21Rollup merge of #56796 - KrishnaSannasi:try_from_impl_change, r=shepmasterMazdak Farrokhzad-2/+2
Change bounds on `TryFrom` blanket impl to use `Into` instead of `From` This is from this [comment](https://github.com/rust-lang/rust/issues/33417#issuecomment-447111156) I made. This will expand the impls available for `TryFrom` and `TryInto`, without losing anything in the process.
2019-01-04stabilize convert::identityMazdak Farrokhzad-4/+1