aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-error/src/report.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-error: Fix clippy warningshjrgrn2026-07-101-1/+1
|
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* Revert "retry-error: stop trying to dedup error msgs"Steven Engler2025-11-181-10/+3
| | | | | | | This reverts commit e0efb477df868baf09d37de99e8e346136e66140. There wasn't a consensus on this change, so sticking with the status quo.
* retry-error: stop trying to dedup error msgsSteven Engler2025-11-131-3/+10
|
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* *: use std::io::Error::other in many placesNick Mathewson2025-05-151-1/+1
| | | | | | | The `IoError::other` function is an easier way to say `IoError::new(IoErrorKind::Other, ...)`. It's been around since 1.74, but clippy started warning about the more verbose version in 1.87.
* tor-error: Implement ErrorReport for dyn StdError + 'static.Nick Mathewson2025-02-041-0/+6
| | | | This is needed to Report on the output of `StdError::source`.
* tor-error: Refor to the correct trait.Nick Mathewson2025-02-041-1/+1
|
* derive-deftly: Change some docs referencesIan Jackson2024-04-031-1/+1
| | | | Found by "git grep adhoc" and manual inspection.
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* tor-error: Correct docs for ErrorReport to reflect improved situationIan Jackson2023-12-121-2/+4
|
* tor-error: ErrorReport: impl for StdError + 'staticIan Jackson2023-12-121-0/+7
|
* tor-error: ErrorReport: remove Sized bound from traitIan Jackson2023-12-121-1/+1
| | | | This will let us impl for dyn StdError.
* tor-error: ErrorReport: move blanket impl code into implIan Jackson2023-12-121-2/+4
| | | | | This impl can only compile for Self: Sized. This will let us remove the Sized bound from the trait itself.
* tor-error: ErrorReport: sealIan Jackson2023-12-121-1/+4
| | | | | | We're going to need to make change to this trait which would be breaking for out-of-crate implementors. This should have been sealed all along.
* Run maint/add_warning to add lint block everywhereIan Jackson2023-08-231-0/+1
|
* retry-error: Provide fmt_error_with_sources in retry-errorIan Jackson2023-07-191-16/+3
| | | | | This code came from tor-error. So now tor-error depends on retry-error.
* Run maint/add_warning to actually apply new lint allowsIan Jackson2023-07-101-0/+1
|
* tor-error: Mark define_asref_dyn_std_error as non-experimentalNick Mathewson2023-06-231-1/+0
| | | | | (I see no problems with this macro. In the worst case, we deprecate it someday.)
* tor-error: Introduce define_asref_dyn_std_error and use itIan Jackson2023-06-091-0/+17
| | | | | This factors out an ad-hoc AsRef impl. We're going to want to reuse this for another error type.
* Allow clippy::unchecked_duration_subtraction in testsNick Mathewson2023-01-271-0/+1
| | | | | This panics on error, and we're fine with a panic on misbehavior in tests.
* Fix typosDimitris Apostolou2023-01-071-1/+1
|
* Merge branch 'test-lints' into 'main'eta2023-01-061-0/+9
|\ | | | | | | | | Add test lint blocks to all "mod test" See merge request tpo/core/arti!937
| * test lint blocks: Add many many automaticallyIan Jackson2022-12-121-0/+9
| | | | | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
* | tor-error: Provide ErrorReport extension trait with .report() methodIan Jackson2022-12-121-0/+32
| |
* | tor_error: Promote internal StdError alias to reportIan Jackson2022-12-121-5/+5
|/ | | | | The std::error::Error repetition was getting rather repetitively repetitious, and is about to get more so.
* tor_error::Report: add testsIan Jackson2022-02-221-0/+56
|
* tor_error::Report: Add bound to structIan Jackson2022-02-221-1/+3
| | | | | This is more typing in the definition but it produces much better error messages if you try to Report(foo).to_string()
* Move program name printing to report_and_exitIan Jackson2022-02-221-3/+8
|
* Placate clippy on nightly, properlyIan Jackson2022-02-181-1/+1
| | | | | I c&p this lint suppression but from a cli option printed by clippy, and I didn't notice the need to change the - to _.
* Placate clippy on nightlyIan Jackson2022-02-181-0/+1
|
* Placate rustfmtIan Jackson2022-02-181-4/+10
| | | | I think all of this diff is a strict disimprovement, but whatever.
* Placate clippyIan Jackson2022-02-181-1/+3
|
* Add missing docs for report_and_exitIan Jackson2022-02-181-0/+3
|
* Provide error reporter and use it in the arti binaryIan Jackson2022-02-181-0/+40