about summary refs log tree commit diff
path: root/library/core/src/error.rs
AgeCommit message (Collapse)AuthorLines
2025-09-24Clarify Display for error should not include sourceStepan Koltsov-1/+7
2025-08-26remove deprecated Error::description in implsMarijn Schouten-29/+4
2025-07-04clippy fix: indentationMarijn Schouten-12/+12
2025-07-01Detect more cases of unused_parens around typesBenjamin Schulz-1/+1
2025-03-06Remove #[cfg(not(test))] gates in coreThalia Archibald-1/+1
These gates are unnecessary now that unit tests for `core` are in a separate package, `coretests`, instead of in the same files as the source code. They previously prevented the two `core` versions from conflicting with each other.
2025-02-18update version placeholdersJosh Stone-1/+1
(cherry picked from commit e4840ce59bdddb19394df008c5c26d9c493725f8)
2025-02-16Add an example for std::error::ErrorChris Denton-0/+24
2025-01-28Stabilize `get_many_mut` as `get_disjoint_mut`Pavel Grigorenko-2/+2
* Renames the methods: * `get_many_mut` -> `get_disjoint_mut` * `get_many_unchecked_mut` -> `get_disjoint_unchecked_mut` * Does not rename the feature flag: `get_many_mut` * Marks the feature as stable * Renames some helper stuff: * `GetManyMutError` -> `GetDisjointMutError` * `GetManyMutIndex` -> `GetDisjointMutIndex` * `get_many_mut_helpers` -> `get_disjoint_mut_helpers` * `get_many_check_valid` -> `get_disjoint_check_valid` This only touches slice methods. HashMap's methods and feature gates are not renamed here (nor are they stabilized).
2024-12-13Update includes in '/library/core/src/error.rs';Gabriel Bjørnager Jensen-2/+2
2024-11-28Change `GetManyMutError` to match T-libs-api decisionChayim Refael Friedman-1/+1
That is, differentiate between out-of-bounds and overlapping indices, and remove the generic parameter `N`. I also exported `GetManyMutError` from `alloc` (and `std`), which was apparently forgotten. Changing the error to carry additional details means LLVM no longer generates separate short-circuiting branches for the checks, instead it generates one branch at the end. I therefore changed the code to use early returns to make LLVM generate jumps. Benchmark results between the approaches are somewhat mixed, but I chose this approach because it is significantly faster with ranges and also faster with `unwrap()`.
2024-10-09Library: Rename "object safe" to "dyn compatible"León Orell Valerian Liehr-10/+11
2024-08-25Remove cfg(test) from library/coreBen Kimock-3/+0
2024-07-30Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68bors-1/+1
Bump bootstrap compiler to new beta https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2024-07-28Update CURRENT_RUSTC_VERSIONMark Rousskov-1/+1
2024-07-26Fix doc nitsJohn Arundel-16/+17
Many tiny changes to stdlib doc comments to make them consistent (for example "Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph breaks, backticks for monospace style, and other minor nits. https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
2024-07-22Fix some `#[cfg_attr(not(doc), repr(..))]`Pavel Grigorenko-1/+1
Now that #90435 seems to have been resolved.
2024-07-04impl FusedIterator and a size hint for the error sources iterSky-0/+7
2024-06-16update commentSlanterns-1/+1
2024-06-10Simplify provider api to improve llvm irJane Losare-Lusby-26/+23
2024-06-07fix doc comments about `error_generic_member_access`Slanterns-2/+2
2024-06-07Stabilize `error_in_core`Slanterns-11/+1
2024-03-02style library/core/src/error.rsXiaobo Liu-0/+1
2024-01-20Spelling fixsunrosa-1/+1
"It's" expands to "it is". "Its" is the possessive form.
2023-11-06Documentation cleanup for core::error::Request.Sven Marnach-4/+4
2023-08-15add missing feature(error_in_core)Ralf Jung-0/+10
2023-08-13core/any: remove Provider traitwayne warren-78/+657
* remove `impl Provider for Error` * rename `Demand` to `Request` * update docstrings to focus on the conceptual API provided by `Request` * move `core::any::{request_ref, request_value}` functions into `core::error` * move `core::any::tag`, `core::any::Request`, an `core::any::TaggedOption` into `core::error` * replace `provide_any` feature name w/ `error_generic_member_access` * move `core::error::request_{ref,value} tests into core::tests::error module * update unit and doc tests
2023-03-15Bump to latest betaMark Rousskov-1/+1
2023-03-15Bump version placeholdersMark Rousskov-1/+1
2023-02-10Remove a couple of `#[doc(hidden)] pub fn` and their `#[feature]` gatesTobias Bucher-16/+0
2023-02-01Stabilize feature 'cstr_from_bytes_until_nul'Trevor Gross-1/+1
2023-01-28Reintroduce multiple_supertrait_upcastable lintGary Guo-0/+1
2022-12-29Revert "Implement allow-by-default multiple_supertrait_upcastable lint"David Tolnay-1/+0
This reverts commit 5e44a65517bfcccbe6624a70b54b9f192baa94f3.
2022-12-09Implement allow-by-default multiple_supertrait_upcastable lintGary Guo-0/+1
2022-11-20Add get_many_mut methods to sliceMarvin Löbel-0/+3
2022-11-06Bump version placeholders to releaseMark Rousskov-1/+1
2022-10-31Rollup merge of #103766 - lukas-code:error-in-core, r=Dylan-DPCDylan DPC-1/+1
Add tracking issue to `error_in_core` This was merged in https://github.com/rust-lang/rust/pull/99917 without a tracking issue, so I'm creating one now: https://github.com/rust-lang/rust/issues/103765
2022-10-30Add tracking issue to `error_in_core`Lukas Markeffsky-1/+1
2022-10-15Stabilize `duration_checked_float`Ryan Lopopolo-2/+2
Tracking issue: - https://github.com/rust-lang/rust/issues/83400
2022-08-25error::Error: remove some commentsNick Cameron-15/+0
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2022-08-24error::Error: rename the Demand arguments from req to demandNick Cameron-7/+7
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2022-08-24error::Error: rename the chain method to sourcesNick Cameron-7/+22
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2022-08-22Move error trait into coreJane Losare-Lusby-0/+508