about summary refs log tree commit diff
path: root/src/libstd/error.rs
AgeCommit message (Collapse)AuthorLines
2018-10-04Rollup merge of #53523 - phungleson:fix-impl-from-for-std-error, ↵Pietro Albini-0/+141
r=GuillaumeGomez Add doc for impl From for Std Error As part of issue #51430 (cc @skade). I am not sure if it is going to a correct direction so put up here so that people can comment.
2018-10-03Remove main() in examplesSon-46/+30
2018-09-26Examples for docsSon-0/+148
2018-09-05Add doc for impl From for Std ErrorSon-0/+9
2018-08-21Correctly parenthesize dyn Error + 'static.Without Boats-1/+1
2018-08-20Fix feature name.Without Boats-1/+1
2018-08-20Add Error::source method per RFC 2504.Without Boats-1/+66
2018-07-11Add missing dyn in testsljedrz-2/+2
2018-07-10Deny bare trait objects in `src/libstd`.ljedrz-43/+43
2018-06-27Fix doc linksJosef Reinhard Brandl-0/+1
2018-06-11Remove deprecated heap modulesSimon Sapin-1/+1
The heap.rs file was already unused.
2018-04-25Suggest alternatives to Error::description()Kornel-1/+3
2018-04-25Move description of the Error trait to its own doc-commentSimon Sapin-39/+24
… rather than the module’s. Remove code definition of the Error trait from its doc-comment It was out of date, and rustdoc already shows the same information. Add a default impl for Error::description and document it as deprecated. It is redundant with Display while being much less flexible for implementors. This is only a "soft" deprecation: it is not worth the hassle of a warning to existing users. Tweak Error trait docs to reflect actual requirements
2018-04-20Revert "Stabilize the TryFrom and TryInto traits"Felix S. Klock II-3/+3
This reverts commit e53a2a72743810e05f58c61c9d8a4c89b712ad2e.
2018-04-20Revert stabilization of `feature(never_type)`.Felix S. Klock II-1/+1
This commit is just covering the feature gate itself and the tests that made direct use of `!` and thus need to opt back into the feature. A follow on commit brings back the other change that motivates the revert: Namely, going back to the old rules for falling back to `()`.
2018-04-12Return Result instead of Option in alloc::Layout constructorsSimon Sapin-1/+10
2018-04-12Make AllocErr a zero-size unit structSimon Sapin-1/+1
2018-04-12Import the `alloc` crate as `alloc_crate` in stdSimon Sapin-5/+5
… to make the name `alloc` available.
2018-03-26Stabilize the TryFrom and TryInto traitsSimon Sapin-3/+3
Tracking issue: https://github.com/rust-lang/rust/issues/33417
2018-03-15replace `convert::Infallible` with `!`Andrew Cann-9/+0
2018-03-14change never_type stabilisation versionAndrew Cann-1/+1
2018-03-14Fix version numberAndrew Cann-1/+1
2018-03-14stabilise feature(never_type)Andrew Cann-1/+1
Replace feature(never_type) with feature(exhaustive_patterns). feature(exhaustive_patterns) only covers the pattern-exhaustives checks that used to be covered by feature(never_type)
2017-12-12Rename never_type_impls gate to never_typeAndrew Cann-1/+1
2017-09-30Merge remote-tracking branch 'upstream/master'Nikolai Vazquez-0/+8
2017-09-29Auto merge of #44174 - jimmycuadra:try-from-infallible, r=sfacklerbors-0/+8
Add blanket TryFrom impl when From is implemented. Adds `impl<T, U> TryFrom<T> for U where U: From<T>`. Removes `impl<'a, T> TryFrom<&'a str> for T where T: FromStr` (originally added in #40281) due to overlapping impls caused by the new blanket impl. This removal is to be discussed further on the tracking issue for TryFrom. Refs #33417. /cc @sfackler, @scottmcm (thank you for the help!), and @aturon
2017-09-29Implement Error trait for TryFromSliceErrorNikolai Vazquez-0/+8
2017-09-23Simplify implementation of Display and Error for convert::Infallible.Jimmy Cuadra-1/+2
2017-09-21impl std::error::Error for convert::Infallible.Jimmy Cuadra-0/+7
2017-09-10Add Cow<str> -> Box<Error> impls.Clar Charr-0/+15
2017-08-02Fixed errors in libstd.Isaac van Bakel-1/+1
2017-07-10Correct some stability attributesOliver Middleton-1/+1
These show up in rustdoc so need to be correct.
2017-07-05rustc: Implement the #[global_allocator] attributeAlex Crichton-2/+2
This PR is an implementation of [RFC 1974] which specifies a new method of defining a global allocator for a program. This obsoletes the old `#![allocator]` attribute and also removes support for it. [RFC 1974]: https://github.com/rust-lang/rfcs/pull/197 The new `#[global_allocator]` attribute solves many issues encountered with the `#![allocator]` attribute such as composition and restrictions on the crate graph itself. The compiler now has much more control over the ABI of the allocator and how it's implemented, allowing much more freedom in terms of how this feature is implemented. cc #27389
2017-06-20Rollup merge of #42271 - tinaun:charfromstr, r=alexcrichtonCorey Farwell-0/+8
add `FromStr` Impl for `char` fixes #24939. is it possible to use pub(restricted) instead of using a stability attribute for the internal error representation? is it needed at all?
2017-06-20added `FromStr` Impl for `char`tinaun-0/+8
2017-06-15implement Error trait for error structs added in allocator API.Felix S. Klock II-0/+19
2017-05-20Correct some stability versionsOliver Middleton-3/+3
These were found by running tidy on stable versions of rust and finding features stabilised with the wrong version numbers.
2017-04-18Fix a few stability attributesOliver Middleton-1/+1
These show up in rustdoc so need to be correct.
2017-03-15Implement Error for !.Clar Charr-0/+5
2016-11-25Follow our own recommendations in the examplesVickenty Fesunov-2/+2
Remove exclamation marks from the the example error descriptions: > The description [...] should not contain newlines or sentence-ending punctuation
2016-10-21Fix a few links in the docsOliver Middleton-1/+3
2016-10-15Fixed typoNabeel Omer-1/+1
2016-10-15Corrected broken markdown linkNabeel Omer-1/+1
2016-10-15Updated the docs for Error::descriptionNabeel Omer-3/+5
2016-10-12Deprecate `Reflect`Nick Cameron-2/+1
[tracking issue](https://github.com/rust-lang/rust/issues/27749)
2016-10-04Rollup merge of #36928 - GuillaumeGomez:error_urls, r=steveklabnikManish Goregaokar-4/+8
Add missing urls for error module r? @steveklabnik
2016-10-03std: Stabilize and deprecate APIs for 1.13Alex Crichton-4/+4
This commit is intended to be backported to the 1.13 branch, and works with the following APIs: Stabilized * `i32::checked_abs` * `i32::wrapping_abs` * `i32::overflowing_abs` * `RefCell::try_borrow` * `RefCell::try_borrow_mut` * `DefaultHasher` * `DefaultHasher::new` * `DefaultHasher::default` Deprecated * `BinaryHeap::push_pop` * `BinaryHeap::replace` * `SipHash13` * `SipHash24` * `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map` module Closes #28147 Closes #34767 Closes #35057 Closes #35070
2016-10-03Add missing urls for error moduleGuillaume Gomez-4/+8
2016-08-29Implement TryFrom<u32> for charSimon Sapin-0/+7
For symmetry with From<char> for u32.
2016-08-26Replace unnecessary uses of `TraitObject` with castsAndrew Paseltiner-18/+4