-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup error handlers #118470
Cleanup error handlers #118470
Commits on Dec 1, 2023
-
Inline and remove
DiagnosticBuilder::new_diagnostic_fatal
.It has a single call site.
Configuration menu - View commit details
-
Copy full SHA for f7e3d05 - Browse repository at this point
Copy the full SHA f7e3d05View commit details -
Return
ErrorGuaranteed
fromspan_err_with_code
methods.`ErrorGuaranteed` should be used for all error methods involving the `Error` level, e.g. as is done for the corresponding `span_err` methods.
Configuration menu - View commit details
-
Copy full SHA for b2a856e - Browse repository at this point
Copy the full SHA b2a856eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95be8b2 - Browse repository at this point
Copy the full SHA 95be8b2View commit details -
Rename
Handler::span_note_diag
asstruct_span_note
.Because `span_note_diag` doesn't follow the naming structure used for the error reporting functions.
Configuration menu - View commit details
-
Copy full SHA for 7138845 - Browse repository at this point
Copy the full SHA 7138845View commit details -
Rename
HandlerInner::failure
asHandlerInner::failure_note
.To match the `FailureNote` variant of `Level`.
Configuration menu - View commit details
-
Copy full SHA for c3628bb - Browse repository at this point
Copy the full SHA c3628bbView commit details -
Rename
*note_without_error
as*note
.Because the variant name in `Level` is `Note`, and the `without_error` suffix is omitted in similar cases like `struct_allow` and `struct_help`.
Configuration menu - View commit details
-
Copy full SHA for 57d6f84 - Browse repository at this point
Copy the full SHA 57d6f84View commit details -
Rename
HandlerInner::delay_span_bug
as `HandlerInner::span_delayed_……bug`. Because the corresponding `Level` is `DelayedBug` and `span_delayed_bug` follows the pattern used everywhere else: `span_err`, `span_warning`, etc.
Configuration menu - View commit details
-
Copy full SHA for 5d1d384 - Browse repository at this point
Copy the full SHA 5d1d384View commit details -
Rename
HandlerInner::delayed_span_bugs
as `HandlerInner::span_delay……ed_bugs`. For reasons similar to the previous commit.
Configuration menu - View commit details
-
Copy full SHA for 2c337a0 - Browse repository at this point
Copy the full SHA 2c337a0View commit details -
Rename
Handler::delay_good_path_bug
as `Handler::good_path_delayed_……bug`. In line with the previous commits.
Configuration menu - View commit details
-
Copy full SHA for c9008c6 - Browse repository at this point
Copy the full SHA c9008c6View commit details -
Rename
LayoutCalculator::delay_bug
asLayoutCalculator::delayed_bug
.To match with the previous commits.
Configuration menu - View commit details
-
Copy full SHA for cb91235 - Browse repository at this point
Copy the full SHA cb91235View commit details -
- Avoid unnecessary `inner` local variables. - Use `borrow_mut` everywhere (instead of the synonym `lock`).
Configuration menu - View commit details
-
Copy full SHA for 6e95739 - Browse repository at this point
Copy the full SHA 6e95739View commit details -
Configuration menu - View commit details
-
Copy full SHA for a179a53 - Browse repository at this point
Copy the full SHA a179a53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31ac4ef - Browse repository at this point
Copy the full SHA 31ac4efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8be1d25 - Browse repository at this point
Copy the full SHA 8be1d25View commit details -
Inline and remove
LoweringContext::handler()
.It has a single call site.
Configuration menu - View commit details
-
Copy full SHA for 61f9356 - Browse repository at this point
Copy the full SHA 61f9356View commit details