summary refs log tree commit diff
path: root/compiler/rustc_session/src/errors.rs
AgeCommit message (Collapse)AuthorLines
2022-10-23Migrate all diagnosticsNilstrieb-28/+28
2022-10-17session: use derive moreDavid Wood-15/+26
Signed-off-by: David Wood <david.wood@huawei.com>
2022-10-12ADD - IntoDiagnostic conformance for TargetDataLayoutErrors in rustc_errorsJhonny Bill Mena-54/+0
This way we comply with the Coherence rule given that IntoDiagnostic trait is defined in rustc_errors, and almost all other crates depend on it.
2022-09-27Migrate rustc_session::expr_parentheses_needed to Subdiagnostic structXiretza-0/+15
2022-09-21FIX - adopt new Diagnostic naming in newly migrated modulesJhonny Bill Mena-28/+28
FIX - ambiguous Diagnostic link in docs UPDATE - rename diagnostic_items to IntoDiagnostic and AddToDiagnostic [Gardening] FIX - formatting via `x fmt` FIX - rebase conflicts. NOTE: Confirm wheather or not we want to handle TargetDataLayoutErrorsWrapper this way DELETE - unneeded allow attributes in Handler method FIX - broken test FIX - Rebase conflict UPDATE - rename residual _SessionDiagnostic and fix LintDiag link
2022-09-21UPDATE - rename SessionSubdiagnostic macro to SubdiagnosticJhonny Bill Mena-2/+2
Also renames: - sym::AddSubdiagnostic to sym:: Subdiagnostic - rustc_diagnostic_item = "AddSubdiagnostic" to rustc_diagnostic_item = "Subdiagnostic"
2022-09-21UPDATE - rename DiagnosticHandler macro to DiagnosticJhonny Bill Mena-4/+4
2022-09-21UPDATE - rename DiagnosticHandler trait to IntoDiagnosticJhonny Bill Mena-12/+12
2022-09-10translations(rustc_session): migrate output.rsLuis Cardoso-1/+50
2022-09-08translations(rustc_session): migrates two diagnostics in session.rsLuis Cardoso-0/+14
2022-09-08translations(rustc_session): remove lint allow rule to the methods marked ↵Luis Cardoso-10/+5
with rustc_lint_diagnostic This commit removes the allows rules for the SessionDiagnostic lint that were being used in the session.rs file. Thanks to the PR #101230 we do not need to annotate the methods with the allow rule as they are part of the diagnostic machinery.
2022-09-08translations(rustc_session): migrate TargetDataLayout::parseLuis Cardoso-5/+56
2022-09-08translations(rustc_session): migrates session.rs and config.rsLuis Cardoso-1/+68
2022-08-26translations(rustc_session): migrate check_expected_reuseLuis Cardoso-8/+7
This commit migrates the errors in the function check_expected_reuse to use the new SessionDiagnostic. It also does some small refactor for the IncorrectCguReuseType to include the 'at least' word in the fluent translation file
2022-08-26translations(rustc_session): migrate 80% of the file parse.rsLuis Cardoso-2/+26
This commit migrates around 80% of the parse file to use SsessionDiagnostic We still have to migrate struct_err and struct_warn.
2022-08-26translations(rustc_session): migrate the file cgu_reuse_trackerLuis Cardoso-0/+22
This commit migrates the errors that indicates an incorrect CGU type and the fatal error that indicates that a CGU has not been correctly recorded